forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcef_cookie.pxd
More file actions
59 lines (53 loc) · 2.42 KB
/
cef_cookie.pxd
File metadata and controls
59 lines (53 loc) · 2.42 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
# 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 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
cdef extern from "include/cef_cookie.h":
ctypedef struct CefCookie:
cef_string_t name
cef_string_t value
cef_string_t domain
cef_string_t path
cpp_bool secure
cpp_bool httponly
cef_time_t creation
cef_time_t last_access
cpp_bool has_expires
cef_time_t expires
cdef CefRefPtr[CefCookieManager] CefCookieManager_GetGlobalManager \
"CefCookieManager::GetGlobalManager"(
CefRefPtr[CefCompletionCallback] callback)
cdef CefRefPtr[CefCookieManager] CefCookieManager_CreateManager \
"CefCookieManager::CreateManager"(
const CefString& path,
cpp_bool persist_session_cookies,
CefRefPtr[CefCompletionCallback] callback)
cdef cppclass CefCookieManager:
void SetSupportedSchemes(const cpp_vector[CefString]& schemes,
CefRefPtr[CefCompletionCallback] callback)
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 SetStoragePath(const CefString& path,
cpp_bool persist_session_cookies,
CefRefPtr[CefCompletionCallback] callback)
# cpp_bool FlushStore(CefRefPtr[CefCompletionCallback] handler)
cdef cppclass CefCookieVisitor:
pass
cdef cppclass CefSetCookieCallback:
pass
cdef cppclass CefDeleteCookiesCallback:
pass