/// <summary> /// Clears all active and idle connections that Chromium currently has. This is /// only recommended if you have released all other CEF objects but don't yet /// want to call cef_shutdown(). If |callback| is non-NULL it will be executed /// on the UI thread after completion. /// </summary> public unsafe virtual void CloseAllConnections(CefCompletionCallback callback) { NativeInstance->CloseAllConnections((callback != null) ? callback.GetNativeInstance() : null); GC.KeepAlive(this); }
/// <summary> /// Clears all certificate exceptions that were added as part of handling /// cef_request_handler_t::on_certificate_error(). If you call this it is /// recommended that you also call close_all_connections() or you risk not /// being prompted again for server certificates if you reconnect quickly. If /// |callback| is non-NULL it will be executed on the UI thread after /// completion. /// </summary> public unsafe virtual void ClearCertificateExceptions(CefCompletionCallback callback) { NativeInstance->ClearCertificateExceptions((callback != null) ? callback.GetNativeInstance() : null); GC.KeepAlive(this); }
/// <summary> /// Clears all HTTP authentication credentials that were added as part of /// handling GetAuthCredentials. If |callback| is non-NULL it will be executed /// on the UI thread after completion. /// </summary> public unsafe virtual void ClearHttpAuthCredentials(CefCompletionCallback callback) { NativeInstance->ClearHttpAuthCredentials((callback != null) ? callback.GetNativeInstance() : null); GC.KeepAlive(this); }
/// <summary> /// Returns the cookie manager for this object. If |callback| is non-NULL it /// will be executed asnychronously on the IO thread after the manager's /// storage has been initialized. /// </summary> public unsafe virtual CefCookieManager GetCookieManager(CefCompletionCallback callback) { return(SafeCall(CefCookieManager.Wrap(CefCookieManager.Create, NativeInstance->GetCookieManager((callback != null) ? callback.GetNativeInstance() : null)))); }
/// <summary> /// Set the schemes supported by this manager. If |include_defaults| is true /// (1) the default schemes ("http", "https", "ws" and "wss") will also be /// supported. Calling this function with an NULL |schemes| value and /// |include_defaults| set to false (0) will disable all loading and saving of /// cookies for this manager. If |callback| is non-NULL it will be executed /// asnychronously on the UI thread after the change has been applied. Must be /// called before any cookies are accessed. /// </summary> public unsafe virtual void SetSupportedSchemes(CefStringList schemes, bool includeDefaults, CefCompletionCallback callback) { NativeInstance->SetSupportedSchemes(schemes.GetNativeInstance(), includeDefaults ? 1 : 0, (callback != null) ? callback.GetNativeInstance() : null); GC.KeepAlive(this); }
/// <summary> /// Flush the backing store (if any) to disk. If |callback| is non-NULL it will /// be executed asnychronously on the UI thread after the flush is complete. /// Returns false (0) if cookies cannot be accessed. /// </summary> public unsafe virtual bool FlushStore(CefCompletionCallback callback) { return(SafeCall(NativeInstance->FlushStore((callback != null) ? callback.GetNativeInstance() : null) != 0)); }
/// <summary> /// Gets the <see cref="CefMediaRouter"/> object associated with the global request context. /// </summary> /// <param name="callback"> /// If <paramref name="callback"/> is non-null it will be executed asnychronously on the CEF UI thread /// after the manager's storage has been initialized. /// </param> /// <returns> /// The <see cref="CefMediaRouter"/> object associated with the global request context. /// </returns> public static unsafe CefMediaRouter GetGlobal(CefCompletionCallback callback) { return(CefMediaRouter.Wrap(CefMediaRouter.Create, CefNativeApi.cef_media_router_get_global(callback is null ? null : callback.GetNativeInstance()))); }
/// <summary> /// Returns the global cookie manager. By default data will be stored at CefSettings.CachePath /// if specified or in memory otherwise. Using this function is equivalent to calling /// CefRequestContext.GetGlobalContext().GetDefaultCookieManager(). /// </summary> /// <param name="callback"> /// If |callback| is non-NULL it will be executed asnychronously on the UI thread after the /// manager's storage has been initialized. /// </param> public static CefCookieManager GetGlobalManager(CefCompletionCallback callback) { return(CefCookieManager.Wrap(CefCookieManager.Create, CefNativeApi.cef_cookie_manager_get_global_manager(callback != null ? callback.GetNativeInstance() : null))); }