diff --git a/libcef/browser/alloy/alloy_content_browser_client.cc b/libcef/browser/alloy/alloy_content_browser_client.cc index 3d01ae27b..d62c6e419 100644 --- a/libcef/browser/alloy/alloy_content_browser_client.cc +++ b/libcef/browser/alloy/alloy_content_browser_client.cc @@ -140,6 +140,7 @@ #include "storage/browser/quota/quota_settings.h" #include "third_party/blink/public/common/associated_interfaces/associated_interface_registry.h" #include "third_party/blink/public/common/web_preferences/web_preferences.h" +#include "third_party/blink/public/mojom/badging/badging.mojom.h" #include "third_party/blink/public/mojom/prerender/prerender.mojom.h" #include "third_party/blink/public/web/web_window_features.h" #include "ui/base/l10n/l10n_util.h" @@ -377,6 +378,14 @@ void BindPluginInfoHost( std::move(receiver)); } +void BindBadgeService( + content::RenderFrameHost* frame_host, + mojo::PendingReceiver receiver) {} + +void BindBadgeServiceForServiceWorker( + const content::ServiceWorkerVersionBaseInfo& info, + mojo::PendingReceiver receiver) {} + void BindMediaFoundationRendererNotifierHandler( content::RenderFrameHost* frame_host, mojo::PendingReceiver @@ -1331,6 +1340,7 @@ void AlloyContentBrowserClient::RegisterBrowserInterfaceBindersForFrame( CefBrowserFrame::RegisterBrowserInterfaceBindersForFrame(render_frame_host, map); + map->Add(base::BindRepeating(&BindBadgeService)); map->Add( base::BindRepeating(&BindMediaFoundationRendererNotifierHandler)); map->Add( @@ -1360,6 +1370,14 @@ void AlloyContentBrowserClient::RegisterBrowserInterfaceBindersForFrame( extension); } +void AlloyContentBrowserClient::RegisterBrowserInterfaceBindersForServiceWorker( + content::BrowserContext* browser_context, + mojo::BinderMapWithContext* + map) { + map->Add( + base::BindRepeating(&BindBadgeServiceForServiceWorker)); +} + base::FilePath AlloyContentBrowserClient::GetSandboxedStorageServiceDataDirectory() { return GetRootCachePath(); diff --git a/libcef/browser/alloy/alloy_content_browser_client.h b/libcef/browser/alloy/alloy_content_browser_client.h index f5de87474..ea9748af9 100644 --- a/libcef/browser/alloy/alloy_content_browser_client.h +++ b/libcef/browser/alloy/alloy_content_browser_client.h @@ -229,6 +229,10 @@ class AlloyContentBrowserClient : public content::ContentBrowserClient { void RegisterBrowserInterfaceBindersForFrame( content::RenderFrameHost* render_frame_host, mojo::BinderMapWithContext* map) override; + void RegisterBrowserInterfaceBindersForServiceWorker( + content::BrowserContext* browser_context, + mojo::BinderMapWithContext* + map) override; base::FilePath GetSandboxedStorageServiceDataDirectory() override; std::string GetProduct() override; std::string GetChromeProduct() override;