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

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

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 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)

Powered by Google App Engine
This is Rietveld 408576698