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

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

Issue 352013002: Revert 279557 "Support exposing Mojo services between render fra..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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: trunk/src/content/browser/renderer_host/render_process_host_impl.h
===================================================================
--- trunk/src/content/browser/renderer_host/render_process_host_impl.h (revision 279559)
+++ trunk/src/content/browser/renderer_host/render_process_host_impl.h (working copy)
@@ -15,10 +15,8 @@
#include "base/timer/timer.h"
#include "content/browser/child_process_launcher.h"
#include "content/browser/dom_storage/session_storage_namespace_impl.h"
-#include "content/browser/mojo/mojo_application_host.h"
#include "content/browser/power_monitor_message_broadcaster.h"
#include "content/common/content_export.h"
-#include "content/common/mojo/service_registry_impl.h"
#include "content/public/browser/gpu_data_manager_observer.h"
#include "content/public/browser/render_process_host.h"
#include "ipc/ipc_channel_proxy.h"
@@ -47,11 +45,13 @@
class BrowserDemuxerAndroid;
class GpuMessageFilter;
class MessagePortMessageFilter;
+class MojoApplicationHost;
#if defined(ENABLE_WEBRTC)
class P2PSocketDispatcherHost;
#endif
class PeerConnectionTrackerHost;
class RendererMainThread;
+class RenderProcessHostMojoImpl;
class RenderWidgetHelper;
class RenderWidgetHost;
class RenderWidgetHostImpl;
@@ -143,7 +143,6 @@
virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id)
OVERRIDE;
virtual void NotifyTimezoneChange() OVERRIDE;
- virtual ServiceRegistry* GetServiceRegistry() OVERRIDE;
// IPC::Sender via RenderProcessHost.
virtual bool Send(IPC::Message* msg) OVERRIDE;
@@ -251,13 +250,23 @@
void IncrementWorkerRefCount();
void DecrementWorkerRefCount();
+ // 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);
+
+ 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());
+ }
+
// Call this function to resume the navigation when it was deferred
// immediately after receiving response headers.
void ResumeResponseDeferredAtStart(const GlobalRequestID& request_id);
- // Activates Mojo for this process. Does nothing if Mojo is already activated.
- void EnsureMojoActivated();
-
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