| 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..ea50152ef3278684fa236ee5bdd1739008e73803 100644
|
| --- a/mojo/application/public/cpp/application_impl.h
|
| +++ b/mojo/application/public/cpp/application_impl.h
|
| @@ -79,10 +79,18 @@ class ApplicationImpl : public Application,
|
| // Requests a new connection to an application. Returns a pointer to the
|
| // 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.
|
| + // 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.
|
| ApplicationConnection* ConnectToApplication(mojo::URLRequestPtr request);
|
|
|
| + // Closes the |connection|.
|
| + void CloseConnection(ApplicationConnection* connection);
|
| +
|
| + // Called by the ApplicationRunner to indicate that the ApplicationImpl will
|
| + // be destroyed soon.
|
| + void WillDestroySoon();
|
| +
|
| // Connect to application identified by |request->url| and connect to the
|
| // service implementation of the interface identified by |Interface|.
|
| template <typename Interface>
|
|
|