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

Unified Diff: chrome/browser/ui/webui/mojo_web_ui_controller.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: InterfaceRequest in RenderFrameSetup 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: chrome/browser/ui/webui/mojo_web_ui_controller.h
diff --git a/chrome/browser/ui/webui/mojo_web_ui_controller.h b/chrome/browser/ui/webui/mojo_web_ui_controller.h
index cf79861a3b6e2d0351ab8d1cd0364d8784835950..35ba56d82f841502a186445f2feac4132354fd46 100644
--- a/chrome/browser/ui/webui/mojo_web_ui_controller.h
+++ b/chrome/browser/ui/webui/mojo_web_ui_controller.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "content/public/browser/web_ui_controller.h"
#include "mojo/public/cpp/system/core.h"
@@ -42,11 +43,16 @@ class MojoWebUIController : public content::WebUIController {
mojo::ScopedMessagePipeHandle handle_to_page) = 0;
private:
+ // Invoked in response to a connection from the renderer.
+ void CreateAndStoreUIHandler(mojo::ScopedMessagePipeHandle handle);
+
// Bindings files are registered here.
content::WebUIDataSource* mojo_data_source_;
scoped_ptr<MojoWebUIHandler> ui_handler_;
+ base::WeakPtrFactory<MojoWebUIController> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(MojoWebUIController);
};
« no previous file with comments | « no previous file | chrome/browser/ui/webui/mojo_web_ui_controller.cc » ('j') | chrome/browser/ui/webui/mojo_web_ui_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698