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

Unified Diff: content/renderer/render_frame_impl.h

Issue 285333003: Support exposing Mojo services between render frames, render threads, and their respective hosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 71be416dbafb959b253fad05b4785992bacfae81..117cc0b6a9194e1c30c41381e96def18d1227bf2 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -14,6 +14,7 @@
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "base/process/process_handle.h"
+#include "content/common/mojo/service_registry_impl.h"
#include "content/public/common/javascript_message_type.h"
#include "content/public/common/referrer.h"
#include "content/public/renderer/render_frame.h"
@@ -222,6 +223,7 @@ class CONTENT_EXPORT RenderFrameImpl
blink::WebNavigationPolicy policy) OVERRIDE;
virtual void ExecuteJavaScript(const base::string16& javascript) OVERRIDE;
virtual bool IsHidden() OVERRIDE;
+ virtual ServiceRegistry* GetServiceRegistry() OVERRIDE;
// blink::WebFrameClient implementation:
virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame,
@@ -397,6 +399,11 @@ class CONTENT_EXPORT RenderFrameImpl
// this back to private member.
void OnNavigate(const FrameMsg_Navigate_Params& params);
+ // Binds this render frame's service registry to a handle to the remote
+ // service registry.
+ void BindServiceRegistry(
+ mojo::ScopedMessagePipeHandle service_provider_handle);
+
protected:
RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id);
@@ -631,6 +638,8 @@ class CONTENT_EXPORT RenderFrameImpl
// The geolocation dispatcher attached to this view, lazily initialized.
GeolocationDispatcher* geolocation_dispatcher_;
+ ServiceRegistryImpl service_registry_;
+
// The screen orientation dispatcher attached to the view, lazily initialized.
ScreenOrientationDispatcher* screen_orientation_dispatcher_;
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698