forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcef_cookie.pxd
More file actions
69 lines (59 loc) · 2.43 KB
/
Copy pathcef_cookie.pxd
File metadata and controls
69 lines (59 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Copyright (c) 2013 CEF Python, see the Authors file.
# All rights reserved. Licensed under BSD 3-clause license.
# Project website: https://github.com/cztomczak/cefpython
from libc.stddef cimport size_t
from cef_string cimport cef_string_t
from libcpp cimport bool as cpp_bool
from cef_time cimport cef_time_t
from libcpp.vector cimport vector as cpp_vector
from cef_string cimport CefString
from cef_ptr cimport CefRefPtr
# noinspection PyUnresolvedReferences
from cef_callback cimport CefCompletionCallback
from cef_time cimport cef_basetime_t
cdef extern from "include/internal/cef_types.h":
ctypedef enum cef_cookie_priority_t:
CEF_COOKIE_PRIORITY_LOW = -1
CEF_COOKIE_PRIORITY_MEDIUM = 0
CEF_COOKIE_PRIORITY_HIGH = 1
ctypedef enum cef_cookie_same_site_t:
CEF_COOKIE_SAME_SITE_UNSPECIFIED
CEF_COOKIE_SAME_SITE_NO_RESTRICTION
CEF_COOKIE_SAME_SITE_LAX_MODE
CEF_COOKIE_SAME_SITE_STRICT_MODE
CEF_COOKIE_SAME_SITE_NUM_VALUES
ctypedef struct CefCookie:
size_t size
cef_string_t name
cef_string_t value
cef_string_t domain
cef_string_t path
int secure
int httponly
cef_basetime_t creation
cef_basetime_t last_access
int has_expires
cef_basetime_t expires
cef_cookie_same_site_t same_site
cef_cookie_priority_t priority
cdef extern from "include/cef_cookie.h":
cdef CefRefPtr[CefCookieManager] CefCookieManager_GetGlobalManager \
"CefCookieManager::GetGlobalManager"(
CefRefPtr[CefCompletionCallback] callback)
cdef cppclass CefCookieManager:
cpp_bool VisitAllCookies(CefRefPtr[CefCookieVisitor] visitor)
cpp_bool VisitUrlCookies(const CefString& url,
cpp_bool includeHttpOnly,
CefRefPtr[CefCookieVisitor] visitor)
cpp_bool SetCookie(const CefString& url, const CefCookie& cookie,
CefRefPtr[CefSetCookieCallback] callback)
cpp_bool DeleteCookies(const CefString& url,
const CefString& cookie_name,
CefRefPtr[CefDeleteCookiesCallback] callback)
cpp_bool FlushStore(CefRefPtr[CefCompletionCallback] callback)
cdef cppclass CefCookieVisitor:
pass
cdef cppclass CefSetCookieCallback:
pass
cdef cppclass CefDeleteCookiesCallback:
pass