mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Remove methods that modify cookie storage at runtime (see issue #2622).
This change removes cookie and request handler functionality that will not supported by the NetworkService. Specifically, it is no longer possible to change cookie storage locations at runime by returning a different CefCookieManager for an already initialized CefRequestContext. After this change you will need to use a separate CefRequestContext when creating a CefBrowser if you require separate cookie storage. The following methods have been removed: - CefCookieManager::CreateManager - CefCookieManager::GetBlockingManager - CefCookieManager::SetStoragePath - CefRequestContextHandler::GetCookieManager The following methods have been renamed: - CefRequestContext::GetDefaultCookieManager to GetCookieManager. This change substantially simplifies the network implementation in CEF because it is no longer necessary to proxy objects that are normally owned by Chromium. Chromium patches that are no longer necessary will be removed as a follow-up commit. To test: Verify that `ceftests --gtest_filter=-PluginTest.*` pass with NetworkService disabled. Plugin tests will be fixed in a follow-up commit.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=f4724d1d945c06c5113ba9e1b7f7ad8d4b735b9c$
|
||||
// $hash=29ac900a92c4ec966cc115aae96c49b545bc9db9$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/request_context_cpptoc.h"
|
||||
@ -171,9 +171,9 @@ request_context_get_cache_path(struct _cef_request_context_t* self) {
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_cookie_manager_t* CEF_CALLBACK request_context_get_default_cookie_manager(
|
||||
struct _cef_request_context_t* self,
|
||||
cef_completion_callback_t* callback) {
|
||||
cef_cookie_manager_t* CEF_CALLBACK
|
||||
request_context_get_cookie_manager(struct _cef_request_context_t* self,
|
||||
cef_completion_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -183,7 +183,7 @@ cef_cookie_manager_t* CEF_CALLBACK request_context_get_default_cookie_manager(
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefCookieManager> _retval =
|
||||
CefRequestContextCppToC::Get(self)->GetDefaultCookieManager(
|
||||
CefRequestContextCppToC::Get(self)->GetCookieManager(
|
||||
CefCompletionCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: refptr_same
|
||||
@ -535,8 +535,7 @@ CefRequestContextCppToC::CefRequestContextCppToC() {
|
||||
GetStruct()->is_global = request_context_is_global;
|
||||
GetStruct()->get_handler = request_context_get_handler;
|
||||
GetStruct()->get_cache_path = request_context_get_cache_path;
|
||||
GetStruct()->get_default_cookie_manager =
|
||||
request_context_get_default_cookie_manager;
|
||||
GetStruct()->get_cookie_manager = request_context_get_cookie_manager;
|
||||
GetStruct()->register_scheme_handler_factory =
|
||||
request_context_register_scheme_handler_factory;
|
||||
GetStruct()->clear_scheme_handler_factories =
|
||||
|
Reference in New Issue
Block a user