コード例 #1
0
        /// <summary>
        /// Returns the global cookie manager. By default data will be stored at
        /// CefSettings.cache_path if specified or in memory otherwise.
        /// </summary>
        public static CefCookieManager GetGlobal(CefCompletionCallback callback)
        {
            var n_handler = callback != null?callback.ToNative() : null;

            return(CefCookieManager.FromNative(
                       cef_cookie_manager_t.get_global_manager(n_handler)
                       ));
        }
コード例 #2
0
 /// <summary>
 /// Returns a cookie manager that neither stores nor retrieves cookies. All
 /// usage of cookies will be blocked including cookies accessed via the network
 /// (request/response headers), via JavaScript (document.cookie), and via
 /// CefCookieManager methods. No cookies will be displayed in DevTools. If you
 /// wish to only block cookies sent via the network use the CefRequestHandler
 /// CanGetCookies and CanSetCookie methods instead.
 /// </summary>
 public static CefCookieManager GetBlockingManager()
 {
     return(CefCookieManager.FromNative(
                cef_cookie_manager_t.get_blocking_manager()
                ));
 }