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

Unified Diff: content/renderer/web_ui_mojo.h

Issue 206923002: Adds plumbing to pass WebUI mojo::Handle from browser to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add TODO and merge to trunk Created 6 years, 9 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/render_view_impl.cc ('k') | content/renderer/web_ui_mojo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/web_ui_mojo.h
diff --git a/content/renderer/web_ui_mojo.h b/content/renderer/web_ui_mojo.h
index 5b9e591c2804dd5ba3f1039b408193387ec7b7c3..09f1a8f16774d8c45df6ea7c99e2af95baf0ecd9 100644
--- a/content/renderer/web_ui_mojo.h
+++ b/content/renderer/web_ui_mojo.h
@@ -10,7 +10,7 @@
#include "content/public/renderer/render_frame_observer.h"
#include "content/public/renderer/render_view_observer.h"
#include "content/public/renderer/render_view_observer_tracker.h"
-#include "mojo/public/system/core.h"
+#include "mojo/public/system/core_cpp.h"
namespace gin {
class PerContextData;
@@ -30,6 +30,9 @@ class WebUIMojo
public:
explicit WebUIMojo(RenderView* render_view);
+ // Sets the handle to the current WebUI.
+ void SetBrowserHandle(mojo::ScopedMessagePipeHandle handle);
+
private:
class MainFrameObserver : public RenderFrameObserver {
public:
@@ -48,10 +51,6 @@ class WebUIMojo
virtual ~WebUIMojo();
- // Invoked from ViewMsg_SetBrowserHandle. Passes handle to current
- // MojoWebUIContextState.
- void OnSetBrowserHandle(MojoHandle handle);
-
void CreateContextState();
void DestroyContextState(v8::Handle<v8::Context> context);
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/web_ui_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698