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

Unified Diff: mojo/public/cpp/bindings/error_handler.h

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: specify ownership in the Bind call Created 6 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/public/cpp/bindings/error_handler.h
diff --git a/mojo/public/cpp/bindings/error_handler.h b/mojo/public/cpp/bindings/error_handler.h
index 8ce1af2726405f727ebb3c096b9692b1456ff06d..fcb9eabf35c9bdc32cefcee42e9c9b87ff9c1d0c 100644
--- a/mojo/public/cpp/bindings/error_handler.h
+++ b/mojo/public/cpp/bindings/error_handler.h
@@ -7,6 +7,12 @@
namespace mojo {
+// Possible behaviors on a connection error:
+// *) DO_NOTHING invokes OnConnectionError and does nothing further.
+// *) DELETE_ON_ERROR invokes OnConnectionError and then deletes the instance
+// bound to the connection.
+enum OnConnectionErrorBehavior { DO_NOTHING, DELETE_ON_ERROR };
DaveMoore 2014/07/15 00:08:29 DO_NOTHING / DELETE or IGNORE_ERROR / DELETE_ON_ER
+
// This interface is used to report connection errors.
class ErrorHandler {
public:

Powered by Google App Engine
This is Rietveld 408576698