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(); |