mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Support disabling of cookie load/save via SetSupportedSchemes (see issue #2622).
With this change the CefCookieManager::SetSupportedSchemes method can be used to disable all loading and saving of cookies for the associated request context. This matches functionality that was previously available via GetBlockingManager. This change also fixes a bug where Set-Cookie headers returned for a request handled via CefSchemeHandlerFactory would be ignored if there was not also a CefResourceRequestHandler returned for the request. To test: All CookieTest.* tests pass.
This commit is contained in:
@@ -68,7 +68,8 @@ class CefURLRequestContextGetter : public net::URLRequestContextGetter {
|
||||
// CefURLRequestContextGetter implementation.
|
||||
net::HostResolver* GetHostResolver() const;
|
||||
|
||||
void SetCookieSupportedSchemes(const std::vector<std::string>& schemes);
|
||||
void SetCookieSupportedSchemes(const std::vector<std::string>& schemes,
|
||||
bool include_defaults);
|
||||
|
||||
// Keep a reference to all handlers sharing this context so that they'll be
|
||||
// kept alive until the context is destroyed.
|
||||
@@ -116,6 +117,7 @@ class CefURLRequestContextGetter : public net::URLRequestContextGetter {
|
||||
|
||||
base::FilePath cookie_store_path_;
|
||||
std::vector<std::string> cookie_supported_schemes_;
|
||||
bool include_defaults_ = true;
|
||||
|
||||
std::vector<CefRefPtr<CefRequestContextHandler>> handler_list_;
|
||||
|
||||
|
Reference in New Issue
Block a user