mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Make CefBrowserContext an abstract base class (see issue #2969)
Existing CefBrowserContext functionality is now split between CefBrowserContext and AlloyBrowserContext. Runtime implementations of CefBrowserContext will provide access to the content::BrowserContext and Profile types via different inheritance paths. For example, the Alloy runtime uses ChromeProfileAlloy and the Chrome runtime uses ProfileImpl. This change also renames CefResourceContext to CefIOThreadState to more accurately represent its purpose as it no longer needs to extend content::ResourceContext.
This commit is contained in:
@ -9,13 +9,17 @@
|
||||
#include "libcef/browser/net/chrome_scheme_handler.h"
|
||||
#include "libcef/browser/net/devtools_scheme_handler.h"
|
||||
#include "libcef/common/net/scheme_registration.h"
|
||||
#include "libcef/features/runtime.h"
|
||||
|
||||
#include "content/public/common/url_constants.h"
|
||||
|
||||
namespace scheme {
|
||||
|
||||
void RegisterInternalHandlers(CefResourceContext* resource_context) {
|
||||
scheme::RegisterChromeDevToolsHandler(resource_context);
|
||||
void RegisterInternalHandlers(CefIOThreadState* iothread_state) {
|
||||
if (!cef::IsAlloyRuntimeEnabled())
|
||||
return;
|
||||
|
||||
scheme::RegisterChromeDevToolsHandler(iothread_state);
|
||||
}
|
||||
|
||||
void DidFinishLoad(CefRefPtr<CefFrame> frame, const GURL& validated_url) {
|
||||
|
Reference in New Issue
Block a user