/// <summary> /// Creates a new cookie manager. If |path| is empty data will be stored in /// memory only. Returns NULL if creation fails. /// </summary> public static CefCookieManager CreateManager(string path) { fixed(char *path_str = path) { var m_path = new cef_string_t(path_str, path != null ? path.Length : 0); var m_cookie_manager = NativeMethods.cef_cookie_manager_create_manager(&m_path); return(CefCookieManager.FromOrDefault(m_cookie_manager)); } }
/// <summary> /// Returns the global cookie manager. By default data will be stored at /// CefSettings.CachePath if specified or in memory otherwise. /// </summary> public static CefCookieManager GetGlobalManager() { return(CefCookieManager.From(NativeMethods.cef_cookie_manager_get_global_manager())); }