| 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 cddc4dc115d97db62e3ed1a8be458399fab22994..358109f52b57205d06e2099c580db55391921e11 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.h
|
| +++ b/content/browser/renderer_host/render_process_host_impl.h
|
| @@ -21,9 +21,7 @@
|
| #include "content/public/browser/render_process_host.h"
|
| #include "ipc/ipc_channel_proxy.h"
|
| #include "ipc/ipc_platform_file.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 "mojo/public/cpp/bindings/interface_ptr.h"
|
|
|
| struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params;
|
|
|
| @@ -245,6 +243,14 @@ class CONTENT_EXPORT RenderProcessHostImpl
|
| void ConnectTo(const base::StringPiece& service_name,
|
| mojo::ScopedMessagePipeHandle handle);
|
|
|
| + template <typename Interface>
|
| + void ConnectTo(const base::StringPiece& service_name,
|
| + mojo::InterfacePtr<Interface>* ptr) {
|
| + mojo::MessagePipe pipe;
|
| + ptr->Bind(pipe.handle0.Pass());
|
| + ConnectTo(service_name, pipe.handle1.Pass());
|
| + }
|
| +
|
| protected:
|
| // A proxy for our IPC::Channel that lives on the IO thread (see
|
| // browser_process.h)
|
|
|