| Index: trunk/src/mojo/public/cpp/bindings/error_handler.h
|
| ===================================================================
|
| --- trunk/src/mojo/public/cpp/bindings/error_handler.h (revision 270872)
|
| +++ trunk/src/mojo/public/cpp/bindings/error_handler.h (working copy)
|
| @@ -14,6 +14,15 @@
|
| virtual void OnConnectionError() = 0;
|
| };
|
|
|
| +// Used when you'd like to extend a base class with the same method signature
|
| +// as ErrorHandler.
|
| +template <typename Base>
|
| +class WithErrorHandler : public Base {
|
| + public:
|
| + virtual ~WithErrorHandler() {}
|
| + virtual void OnConnectionError() = 0;
|
| +};
|
| +
|
| } // namespace mojo
|
|
|
| #endif // MOJO_PUBLIC_CPP_BINDINGS_ERROR_HANDLER_H_
|
|
|