Index: mojo/public/cpp/bindings/interface_impl.h |
diff --git a/mojo/public/cpp/bindings/interface_impl.h b/mojo/public/cpp/bindings/interface_impl.h |
index a9d0947757d728bb773efe0538952ec1556a7151..92d16c75f87daf8828e223a218885c004f94faf4 100644 |
--- a/mojo/public/cpp/bindings/interface_impl.h |
+++ b/mojo/public/cpp/bindings/interface_impl.h |
@@ -14,17 +14,20 @@ namespace mojo { |
// implementation. It may be bound to a pipe or a proxy, see BindToPipe and |
// BindToProxy. |
// |
-// NOTE: A base class of WithErrorHandler<Interface> is used to avoid multiple |
-// inheritance. This base class inserts the signature of ErrorHandler into the |
-// inheritance chain. |
+// NOTE: A base class of WithInterfaceImplBase<Interface> is used to avoid |
+// multiple inheritance. This base class inserts the signature of |
+// InterfaceImplBase into the inheritance chain. |
template <typename Interface> |
-class InterfaceImpl : public WithErrorHandler<Interface> { |
+class InterfaceImpl : public internal::WithInterfaceImplBase<Interface> { |
public: |
typedef typename Interface::Client Client; |
InterfaceImpl() : internal_state_(this) {} |
virtual ~InterfaceImpl() {} |
+ // Subclasses can override this to handle post connection initialization. |
+ virtual void OnConnectionEstablished() {} |
+ |
// Subclasses must handle connection errors. |
virtual void OnConnectionError() = 0; |