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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2183703005: Renderers should obtain browser InterfaceProvider by connecting to browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index ea1d9eaadbe2a1b356ddb70560d6d47fe2d48efe..8daa54d97e6650ba159298a37ce88839d5c58009 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -33,6 +33,10 @@
#include "ui/gfx/gpu_memory_buffer.h"
#include "ui/gl/gpu_switching_observer.h"
+#if defined(OS_ANDROID)
+#include "content/public/browser/android/interface_registry_android.h"
+#endif
+
namespace base {
class CommandLine;
class MessageLoop;
@@ -296,6 +300,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
private:
friend class ChildProcessLauncherBrowserTest_ChildSpawnFail_Test;
friend class VisitRelayingRenderProcessHost;
+ class ConnectionFilterImpl;
std::unique_ptr<IPC::ChannelProxy> CreateChannelProxy(
const std::string& channel_id);
@@ -304,7 +309,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
void CreateMessageFilters();
// Registers Mojo interfaces to be exposed to the renderer.
- void RegisterMojoInterfaces();
+ void RegisterMojoInterfaces(shell::InterfaceRegistry* registry);
void CreateStoragePartitionService(
mojo::InterfaceRequest<mojom::StoragePartitionService> request);
@@ -364,7 +369,11 @@ class CONTENT_EXPORT RenderProcessHostImpl
std::string child_token_;
std::unique_ptr<MojoChildConnection> mojo_child_connection_;
+ ConnectionFilterImpl* connection_filter_ = nullptr;
shell::mojom::ServicePtr test_service_;
+#if defined(OS_ANDROID)
+ std::unique_ptr<InterfaceRegistryAndroid> interface_registry_android_;
+#endif
// The registered IPC listener objects. When this list is empty, we should
// delete ourselves.

Powered by Google App Engine
This is Rietveld 408576698