Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1877)

Unified Diff: content/public/browser/content_browser_client.h

Issue 2766263009: Convert content ConnectionFilter to OnBindInterface (Closed)
Patch Set: . Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 45056271e932b9d16b6688343186fa795018367e..a93d65adf79002e111d014fca5095fba95d222fb 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -66,8 +66,10 @@ class CdmFactory;
}
namespace service_manager {
+class BinderRegistry;
class InterfaceRegistry;
class Service;
+struct ServiceInfo;
}
namespace net {
@@ -110,7 +112,6 @@ class BrowserURLHandler;
class ClientCertificateDelegate;
class ControllerPresentationServiceDelegate;
class DevToolsManagerDelegate;
-class GpuProcessHost;
class MediaObserver;
class MemoryCoordinatorDelegate;
class NavigationHandle;
@@ -660,7 +661,7 @@ class CONTENT_EXPORT ContentBrowserClient {
// |registry| will by default be run immediately on the IO thread, unless a
// task runner is provided.
virtual void ExposeInterfacesToRenderer(
- service_manager::InterfaceRegistry* registry,
+ service_manager::BinderRegistry* registry,
RenderProcessHost* render_process_host) {}
// Called when RenderFrameHostImpl connects to the Media service. Expose
@@ -675,13 +676,14 @@ class CONTENT_EXPORT ContentBrowserClient {
service_manager::InterfaceRegistry* registry,
RenderFrameHost* render_frame_host) {}
- // Allows to register browser Mojo interfaces exposed through the
- // GpuProcessHost. Called on the IO thread. Note that interface factory
- // callbacks added to |registry| will by default be run immediately on the IO
- // thread, unless a task runner is provided.
- virtual void ExposeInterfacesToGpuProcess(
- service_manager::InterfaceRegistry* registry,
- GpuProcessHost* render_process_host) {}
+ // (Currently called only from GPUProcessHost, move somewhere more central).
+ // Called when a request to bind |interface_name| on |interface_pipe| is
+ // received from |source_info.identity|. If the request is bound,
+ // |interface_pipe| will become invalid (taken by the client).
+ virtual void BindInterfaceRequest(
+ const service_manager::ServiceInfo& source_info,
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle* interface_pipe) {}
using StaticServiceMap = std::map<std::string, ServiceInfo>;
« no previous file with comments | « content/public/app/mojo/content_utility_manifest.json ('k') | content/public/browser/gpu_service_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698