Пример #1
0
 public static int flush_store(cef_cookie_manager_t* self, cef_completion_callback_t* callback)
 {
     flush_store_delegate d;
     var p = self->_flush_store;
     if (p == _p9) { d = _d9; }
     else
     {
         d = (flush_store_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(flush_store_delegate));
         if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; }
     }
     return d(self, callback);
 }
Пример #2
0
 public static void add_ref(cef_cookie_manager_t* self)
 {
     add_ref_delegate d;
     var p = self->_base._add_ref;
     if (p == _p0) { d = _d0; }
     else
     {
         d = (add_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(add_ref_delegate));
         if (_p0 == IntPtr.Zero) { _d0 = d; _p0 = p; }
     }
     d(self);
 }
Пример #3
0
 public static int delete_cookies(cef_cookie_manager_t* self, cef_string_t* url, cef_string_t* cookie_name)
 {
     delete_cookies_delegate d;
     var p = self->_delete_cookies;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (delete_cookies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(delete_cookies_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self, url, cookie_name);
 }
Пример #4
0
 public static int set_storage_path(cef_cookie_manager_t* self, cef_string_t* path, int persist_session_cookies)
 {
     set_storage_path_delegate d;
     var p = self->_set_storage_path;
     if (p == _p8) { d = _d8; }
     else
     {
         d = (set_storage_path_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_storage_path_delegate));
         if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; }
     }
     return d(self, path, persist_session_cookies);
 }
Пример #5
0
 public static int visit_url_cookies(cef_cookie_manager_t* self, cef_string_t* url, int includeHttpOnly, cef_cookie_visitor_t* visitor)
 {
     visit_url_cookies_delegate d;
     var p = self->_visit_url_cookies;
     if (p == _p5) { d = _d5; }
     else
     {
         d = (visit_url_cookies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(visit_url_cookies_delegate));
         if (_p5 == IntPtr.Zero) { _d5 = d; _p5 = p; }
     }
     return d(self, url, includeHttpOnly, visitor);
 }
Пример #6
0
 public static int set_cookie(cef_cookie_manager_t* self, cef_string_t* url, cef_cookie_t* cookie)
 {
     set_cookie_delegate d;
     var p = self->_set_cookie;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (set_cookie_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_cookie_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     return d(self, url, cookie);
 }
Пример #7
0
 public static void set_supported_schemes(cef_cookie_manager_t* self, cef_string_list* schemes)
 {
     set_supported_schemes_delegate d;
     var p = self->_set_supported_schemes;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (set_supported_schemes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_supported_schemes_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     d(self, schemes);
 }
Пример #8
0
 public static int visit_all_cookies(cef_cookie_manager_t* self, cef_cookie_visitor_t* visitor)
 {
     visit_all_cookies_delegate d;
     var p = self->_visit_all_cookies;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (visit_all_cookies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(visit_all_cookies_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self, visitor);
 }
Пример #9
0
 public static int has_one_ref(cef_cookie_manager_t* self)
 {
     has_one_ref_delegate d;
     var p = self->_base._has_one_ref;
     if (p == _p2) { d = _d2; }
     else
     {
         d = (has_one_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_one_ref_delegate));
         if (_p2 == IntPtr.Zero) { _d2 = d; _p2 = p; }
     }
     return d(self);
 }
Пример #10
0
 public static int release(cef_cookie_manager_t* self)
 {
     release_delegate d;
     var p = self->_base._release;
     if (p == _p1) { d = _d1; }
     else
     {
         d = (release_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(release_delegate));
         if (_p1 == IntPtr.Zero) { _d1 = d; _p1 = p; }
     }
     return d(self);
 }
Пример #11
0
 internal static CefCookieManager FromNativeOrNull(cef_cookie_manager_t* ptr)
 {
     if (ptr == null) return null;
     return new CefCookieManager(ptr);
 }
Пример #12
0
 internal static CefCookieManager FromNative(cef_cookie_manager_t* ptr)
 {
     return new CefCookieManager(ptr);
 }
Пример #13
0
 private CefCookieManager(cef_cookie_manager_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }