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 7036d33dbc6b72beff66800258d101ca20a093db..c76488f6aad9e089c7d6c7b30282fb86b0435194 100644 |
--- a/mojo/application/public/cpp/application_impl.h |
+++ b/mojo/application/public/cpp/application_impl.h |
@@ -80,8 +80,11 @@ class ApplicationImpl : public Application, |
// connection if the connection is permitted by this application's delegate, |
// or nullptr otherwise. Caller does not take ownership. The pointer remains |
// valid until an error occurs on the connection with the Shell, or until the |
- // ApplicationImpl is destroyed, whichever occurs first. |
+ // ApplicationImpl is destroyed, whichever occurs first. If |error_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& error_cb); |
sandersd (OOO until July 31)
2015/06/30 21:32:47
It's true that this is caused by a connection erro
xhwang
2015/07/07 20:29:24
Done.
|
// Connect to application identified by |request->url| and connect to the |
// service implementation of the interface identified by |Interface|. |