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

Unified Diff: mojo/apps/js/application_delegate_impl.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: Complete 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
« no previous file with comments | « no previous file | mojo/apps/js/application_delegate_impl.cc » ('j') | mojo/apps/js/js_app.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/application_delegate_impl.h
diff --git a/mojo/apps/js/application_delegate_impl.h b/mojo/apps/js/application_delegate_impl.h
index 81a481cd356bc3a76be815561d7a17358c8693af..d6f62c884895b6eb9fe6c98d8c086e5179b58a66 100644
--- a/mojo/apps/js/application_delegate_impl.h
+++ b/mojo/apps/js/application_delegate_impl.h
@@ -37,9 +37,9 @@ class ApplicationDelegateImpl : public ApplicationDelegate {
// Remove app from the AppVector; destroys the app.
void QuitJSApp(JSApp *app);
- void ConnectToService(ScopedMessagePipeHandle pipe_handle,
- const std::string& application_url,
- const std::string& interface_name);
+ // Use the shell to connect to a ServiceProvider for application_url.
Aaron Boodman 2014/10/24 22:17:18 Why is the first param a bare pipe rather than a S
hansmuller 2014/10/27 22:43:22 JSApp::ConnectToApplication() calls this method wi
Aaron Boodman 2014/10/29 17:12:51 You turn it into an InterfaceRequest in the impl o
hansmuller 2014/10/29 22:43:40 Done.
+ void ConnectToApplication(ScopedMessagePipeHandle pipe_handle,
+ const std::string& application_url);
Aaron Boodman 2014/10/24 22:17:18 Nit: it makes slightly more sense to me for applic
hansmuller 2014/10/27 22:43:22 I agree, reversing the order matches the ServicePr
protected:
// ApplicationDelegate:
@@ -47,7 +47,7 @@ class ApplicationDelegateImpl : public ApplicationDelegate {
private:
typedef ScopedVector<JSApp> AppVector;
- ApplicationImpl* application_impl_;
+ ApplicationImpl* application_impl_; // Owns the shell used by all JSApps.
AppVector app_vector_;
};
« no previous file with comments | « no previous file | mojo/apps/js/application_delegate_impl.cc » ('j') | mojo/apps/js/js_app.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698