Chromium Code Reviews| 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 284332f50459a88e444d692d636c03b2ba23e53d..3fecddfd23ffb28dd742ca5f9d1553e4fd4c3fa6 100644 |
| --- a/content/browser/renderer_host/render_process_host_impl.h |
| +++ b/content/browser/renderer_host/render_process_host_impl.h |
| @@ -21,7 +21,9 @@ |
| #include "content/public/browser/render_process_host.h" |
| #include "ipc/ipc_channel_proxy.h" |
| #include "ipc/ipc_platform_file.h" |
| -#include "mojo/public/cpp/system/core.h" |
| +#include "mojo/embedder/scoped_platform_handle.h" |
| +#include "mojo/public/cpp/bindings/remote_ptr.h" |
| +#include "mojo/public/interfaces/shell/shell.mojom.h" |
| #include "ui/surface/transport_dib.h" |
| struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params; |
| @@ -41,6 +43,7 @@ class BrowserDemuxerAndroid; |
| class GeolocationDispatcherHost; |
| class GpuMessageFilter; |
| class MessagePortMessageFilter; |
| +class MojoApplicationHost; |
| class PeerConnectionTrackerHost; |
| class RendererMainThread; |
| class RenderProcessHostMojoImpl; |
| @@ -240,8 +243,10 @@ class CONTENT_EXPORT RenderProcessHostImpl |
| void IncrementWorkerRefCount(); |
| void DecrementWorkerRefCount(); |
| - void SetWebUIHandle(int32 view_routing_id, |
| - mojo::ScopedMessagePipeHandle handle); |
| + // Establish a connection to a renderer-provided service. See |
| + // content/common/mojo/mojo_service_names.h for a list of services. |
| + void ConnectTo(const char* service_name, |
|
sky
2014/04/22 15:52:20
Is service_name always going to be well known that
|
| + mojo::ScopedMessagePipeHandle handle); |
| protected: |
| // A proxy for our IPC::Channel that lives on the IO thread (see |
| @@ -306,6 +311,8 @@ class CONTENT_EXPORT RenderProcessHostImpl |
| void SendDisableAecDumpToRenderer(); |
| #endif |
| + scoped_ptr<MojoApplicationHost> mojo_application_host_; |
| + |
| // The registered IPC listener objects. When this list is empty, we should |
| // delete ourselves. |
| IDMap<IPC::Listener> listeners_; |
| @@ -431,8 +438,6 @@ class CONTENT_EXPORT RenderProcessHostImpl |
| // Records the time when the process starts surviving for workers for UMA. |
| base::TimeTicks survive_for_worker_start_time_; |
| - scoped_ptr<RenderProcessHostMojoImpl> render_process_host_mojo_; |
| - |
| base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |