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

Unified Diff: content/renderer/web_ui_mojo.cc

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/web_ui_mojo.h ('k') | content/renderer/web_ui_mojo_context_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/web_ui_mojo.cc
diff --git a/content/renderer/web_ui_mojo.cc b/content/renderer/web_ui_mojo.cc
index 04712e24f9236dacf1f84979bad0e52c10b89cb2..21d85dacaa867df80c28f236c7732b3006a4ee0b 100644
--- a/content/renderer/web_ui_mojo.cc
+++ b/content/renderer/web_ui_mojo.cc
@@ -48,14 +48,14 @@ WebUIMojo::WebUIMojo(RenderView* render_view)
CreateContextState();
}
-WebUIMojo::~WebUIMojo() {
-}
-
-void WebUIMojo::OnSetBrowserHandle(MojoHandle handle) {
+void WebUIMojo::SetBrowserHandle(mojo::ScopedMessagePipeHandle handle) {
v8::HandleScope handle_scope(blink::mainThreadIsolate());
WebUIMojoContextState* state = GetContextState();
if (state)
- state->SetHandle(mojo::MakeScopedHandle(mojo::Handle(handle)));
+ state->SetHandle(handle.Pass());
+}
+
+WebUIMojo::~WebUIMojo() {
}
void WebUIMojo::CreateContextState() {
« no previous file with comments | « content/renderer/web_ui_mojo.h ('k') | content/renderer/web_ui_mojo_context_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698