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

Unified Diff: mojo/apps/js/js_app.h

Issue 665743003: Mojo JS Bindings: Simplify sharing services for content-provided JS applications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: mojo/apps/js/js_app.h
diff --git a/mojo/apps/js/js_app.h b/mojo/apps/js/js_app.h
index 8db1044455d4c55b7100eec50649fdb0a54afb8d..ac6b3cd7ba0143cbfecabea7c04c975c226e2b1d 100644
--- a/mojo/apps/js/js_app.h
+++ b/mojo/apps/js/js_app.h
@@ -38,9 +38,14 @@ class JSApp {
// Called by the JS mojo module to quit this JS app. See mojo.js.
void Quit();
- // Called by the JS mojo module to connect to a Mojo service.
- Handle ConnectToService(const std::string& application_url,
- const std::string& interface_name);
+ // Called by the JS mojo module to connect to a Mojo application.
+ Handle ConnectToApplication(const std::string& application_url);
+
+ // Called by the JS mojo module to retrieve the ServiceProvider message
+ // pipe handle passed to the JS content handler's OnConnect() method.
+ // If this app was not launched by the content handler then return a null
+ // Mojo handle.
+ virtual Handle RequestorMessagePipeHandle() = 0;
private:
void Run();

Powered by Google App Engine
This is Rietveld 408576698