mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Delete Alloy bootstrap (fixes #3685)
This commit is contained in:
@ -485,81 +485,6 @@ void CefRequestContextImpl::ResolveHost(
|
||||
this, origin, callback));
|
||||
}
|
||||
|
||||
void CefRequestContextImpl::LoadExtension(
|
||||
const CefString& root_directory,
|
||||
CefRefPtr<CefDictionaryValue> manifest,
|
||||
CefRefPtr<CefExtensionHandler> handler) {
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
GetBrowserContext(content::GetUIThreadTaskRunner({}),
|
||||
base::BindOnce(
|
||||
[](const CefString& root_directory,
|
||||
CefRefPtr<CefDictionaryValue> manifest,
|
||||
CefRefPtr<CefExtensionHandler> handler,
|
||||
CefRefPtr<CefRequestContextImpl> self,
|
||||
CefBrowserContext::Getter browser_context_getter) {
|
||||
auto browser_context = browser_context_getter.Run();
|
||||
if (browser_context) {
|
||||
browser_context->LoadExtension(
|
||||
root_directory, manifest, handler, self);
|
||||
}
|
||||
},
|
||||
root_directory, manifest, handler,
|
||||
CefRefPtr<CefRequestContextImpl>(this)));
|
||||
#else
|
||||
NOTIMPLEMENTED();
|
||||
#endif
|
||||
}
|
||||
|
||||
bool CefRequestContextImpl::DidLoadExtension(const CefString& extension_id) {
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
CefRefPtr<CefExtension> extension = GetExtension(extension_id);
|
||||
// GetLoaderContext() will return NULL for internal extensions.
|
||||
return extension && IsSame(extension->GetLoaderContext());
|
||||
#else
|
||||
NOTIMPLEMENTED();
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool CefRequestContextImpl::HasExtension(const CefString& extension_id) {
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
return !!GetExtension(extension_id);
|
||||
#else
|
||||
NOTIMPLEMENTED();
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool CefRequestContextImpl::GetExtensions(
|
||||
std::vector<CefString>& extension_ids) {
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
extension_ids.clear();
|
||||
|
||||
if (!VerifyBrowserContext()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return browser_context()->GetExtensions(extension_ids);
|
||||
#else
|
||||
NOTIMPLEMENTED();
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
CefRefPtr<CefExtension> CefRequestContextImpl::GetExtension(
|
||||
const CefString& extension_id) {
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
if (!VerifyBrowserContext()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return browser_context()->GetExtension(extension_id);
|
||||
#else
|
||||
NOTIMPLEMENTED();
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
CefRefPtr<CefMediaRouter> CefRequestContextImpl::GetMediaRouter(
|
||||
CefRefPtr<CefCompletionCallback> callback) {
|
||||
CefRefPtr<CefMediaRouterImpl> media_router = new CefMediaRouterImpl();
|
||||
|
Reference in New Issue
Block a user