コード例 #1
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))));
 }
コード例 #2
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)));
 }