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

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

Issue 1200323003: media: Quit MojoMediaApplication when no service is bound. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only 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
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 20b073359191a81e8cc5e047ab4c094ba832f5ff..c5c01d3380210e93a0ff710dc8c62e5c0939457d 100644
--- a/mojo/application/public/cpp/application_impl.h
+++ b/mojo/application/public/cpp/application_impl.h
@@ -81,8 +81,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
+ // 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 | « mojo/application/public/cpp/app_lifetime_helper.h ('k') | mojo/application/public/cpp/lib/app_lifetime_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698