33
44# CookieManager (class)
55
6- This class cannot be instantiated directly, use the CreateManager()
7- static method for this purpose .
6+ Class used for managing cookies. The methods of this class may be called on
7+ any thread unless otherwise indicated .
88
9- The cookie tests can be found in the wxpython.py script.
9+ Use the ` CookieManager.CreateManager ` static method to instantiate
10+ this class.
1011
1112TODO: in upstream CEF some methods here have a callback parameter
1213that when non-NULL will execute asynchronously on the IO thread
@@ -17,6 +18,7 @@ also have an OnComplete callback.
1718Table of contents:
1819* [ Methods] ( #methods )
1920 * [ GetGlobalManager] ( #getglobalmanager )
21+ * [ GetBlockingManager] ( #getblockingmanager )
2022 * [ CreateManager] ( #createmanager )
2123 * [ SetSupportedSchemes] ( #setsupportedschemes )
2224 * [ VisitAllCookies] ( #visitallcookies )
@@ -34,19 +36,41 @@ Table of contents:
3436
3537| | |
3638| --- | --- |
37- | __ Return__ | static [ CookieManager] ( CookieManager.md ) |
39+ | __ Return__ | [ CookieManager] ( CookieManager.md ) |
3840
3941Returns the global cookie manager. By default data will be stored at
4042[ ApplicationSettings] ( ApplicationSettings.md ) .cache_path if specified or in memory otherwise.
4143
44+ Description from upstream CEF:
45+ > Returns the global cookie manager. By default data will be stored at
46+ > CefSettings.cache_path if specified or in memory otherwise. If |callback|
47+ > is non-NULL it will be executed asnychronously on the IO thread after the
48+ > manager's storage has been initialized. Using this method is equivalent to
49+ > calling CefRequestContext::GetGlobalContext()->GetDefaultCookieManager()
50+
51+
52+ ### GetBlockingManager
53+
54+ | | |
55+ | --- | --- |
56+ | __ Return__ | [ CookieManager] ( CookieManager.md ) |
57+
58+ Description from upstream CEF:
59+ > Returns a cookie manager that neither stores nor retrieves cookies. All
60+ > usage of cookies will be blocked including cookies accessed via the network
61+ > (request/response headers), via JavaScript (document.cookie), and via
62+ > CefCookieManager methods. No cookies will be displayed in DevTools. If you
63+ > wish to only block cookies sent via the network use the CefRequestHandler
64+ > CanGetCookies and CanSetCookie methods instead.
65+
4266
4367### CreateManager
4468
4569| Parameter | Type |
4670| --- | --- |
4771| path | string |
4872| persistSessionCookies=False | bool |
49- | __ Return__ | static [ CookieManager] ( CookieManager.md ) |
73+ | __ Return__ | [ CookieManager] ( CookieManager.md ) |
5074
5175Creates a new cookie manager. Otherwise, data will be stored at the
5276specified |path|. To persist session cookies (cookies without an expiry
@@ -181,4 +205,4 @@ Flush the backing store (if any) to disk. If |callback| is non-NULL it will
181205be executed asnychronously on the IO thread after the flush is complete.
182206Returns false if cookies cannot be accessed.
183207
184- The callback arg is not implemented.
208+ The callback arg is not implemented yet .
0 commit comments