Index: mojo/application/public/cpp/application_delegate.h |
diff --git a/mojo/application/public/cpp/application_delegate.h b/mojo/application/public/cpp/application_delegate.h |
index 0d57097c048dbb51b1dce0f2628d9f71d7f30487..876ad403fd8cfd1d2298025f414cd5082bb68025 100644 |
--- a/mojo/application/public/cpp/application_delegate.h |
+++ b/mojo/application/public/cpp/application_delegate.h |
@@ -38,6 +38,13 @@ class ApplicationDelegate { |
// the |connection| object will be destroyed. |
virtual void OnWillCloseConnection(ApplicationConnection* connection) {} |
+ // Called when the shell connection has a connection error. |
+ // |
+ // Return true to shutdown the application. Return false to skip shutting |
+ // down the connection, but user is then required to call |
+ // ApplicationImpl::QuitNow() when done. |
+ virtual bool OnShellConnectionError(); |
+ |
// Called before ApplicationImpl::Terminate(). After returning from this call |
// the delegate can no longer rely on the main run loop still running. |
virtual void Quit(); |