| 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 25cc24ad8fbbf1dcb6272adf5e26feda12269dae..4833f16c672b70dd2bb14a661ab62eb4a70a32cf 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"
|
|
|
| struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params;
|
|
|
| @@ -40,6 +42,7 @@ class BrowserDemuxerAndroid;
|
| class GeolocationDispatcherHost;
|
| class GpuMessageFilter;
|
| class MessagePortMessageFilter;
|
| +class MojoApplicationHost;
|
| class PeerConnectionTrackerHost;
|
| class RendererMainThread;
|
| class RenderProcessHostMojoImpl;
|
| @@ -237,8 +240,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 base::StringPiece& service_name,
|
| + mojo::ScopedMessagePipeHandle handle);
|
|
|
| protected:
|
| // A proxy for our IPC::Channel that lives on the IO thread (see
|
| @@ -303,6 +308,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_;
|
| @@ -416,8 +423,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);
|
|
|