コード例 #1
0
ファイル: CefRequestContext.cs プロジェクト: wuzlai/AGTkDemo
 /// <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&apos;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);
 }
コード例 #2
0
ファイル: CefRequestContext.cs プロジェクト: wuzlai/AGTkDemo
 /// <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);
 }
コード例 #3
0
ファイル: CefRequestContext.cs プロジェクト: wuzlai/AGTkDemo
 /// <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);
 }
コード例 #4
0
ファイル: CefRequestContext.cs プロジェクト: wuzlai/AGTkDemo
 /// <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&apos;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))));
 }
コード例 #5
0
ファイル: CefCookieManager.cs プロジェクト: wuzlai/AGTkDemo
 /// <summary>
 /// Set the schemes supported by this manager. If |include_defaults| is true
 /// (1) the default schemes (&quot;http&quot;, &quot;https&quot;, &quot;ws&quot; and &quot;wss&quot;) 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);
 }
コード例 #6
0
ファイル: CefCookieManager.cs プロジェクト: wuzlai/AGTkDemo
 /// <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));
 }
コード例 #7
0
ファイル: CefMediaRouter.cs プロジェクト: vmas/CefNet
 /// <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&apos;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())));
 }
コード例 #8
0
ファイル: CefCookieManager.cs プロジェクト: wuzlai/AGTkDemo
 /// <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&apos;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)));
 }