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

Unified Diff: mojo/application/public/cpp/application_impl.h

Issue 1249643004: media: Quit MojoMediaApplication when no ServiceFactory service is bound. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « media/mojo/services/service_factory_impl.cc ('k') | mojo/application/public/cpp/lib/application_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/application/public/cpp/application_impl.h
diff --git a/mojo/application/public/cpp/application_impl.h b/mojo/application/public/cpp/application_impl.h
index d3fb716b2118dc4a427c518ec13a50bc944bb30f..acfe27432e79d99c2c664e3045fa998ab561af46 100644
--- a/mojo/application/public/cpp/application_impl.h
+++ b/mojo/application/public/cpp/application_impl.h
@@ -80,8 +80,12 @@ class ApplicationImpl : public Application {
// or nullptr otherwise. Caller does not take ownership. The pointer remains
// valid until an error occurs on the connection with the Shell, until the
// ApplicationImpl is destroyed, or until the connection is closed through a
- // call to ApplicationConnection::CloseConnection.
+ // call to ApplicationConnection::CloseConnection. If |terminate_cb| is
sky 2015/07/22 23:56:33 It's not when the app is terminated, but rather wh
xhwang 2015/07/23 21:57:15 Done.
+ // provided, it will be fired when the application is terminated.
ApplicationConnection* ConnectToApplication(mojo::URLRequestPtr request);
+ ApplicationConnection* ConnectToApplication(
+ mojo::URLRequestPtr request,
+ const base::Closure& terminate_cb);
// Closes the |connection|.
void CloseConnection(ApplicationConnection* connection);
« no previous file with comments | « media/mojo/services/service_factory_impl.cc ('k') | mojo/application/public/cpp/lib/application_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698