Chromium Code Reviews| 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: |