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

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

Issue 1231493002: mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT for jam's core services patch. 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_delegate.h
diff --git a/mojo/application/public/cpp/application_delegate.h b/mojo/application/public/cpp/application_delegate.h
index 0d57097c048dbb51b1dce0f2628d9f71d7f30487..c571fc87b51dc8b715f744f2a38b0ce84df87a9c 100644
--- a/mojo/application/public/cpp/application_delegate.h
+++ b/mojo/application/public/cpp/application_delegate.h
@@ -38,6 +38,12 @@ 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 QuitNow() when done.
jam 2015/07/13 15:48:33 nit, to be clear, ApplicationImpl::QuitNow()?
+ virtual bool OnShellConnectionError();
jam 2015/07/13 15:48:33 nit: perhaps the method name would make things obv
+
// 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();

Powered by Google App Engine
This is Rietveld 408576698