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