Index: mojo/services/view_manager/view_manager_connection.h |
diff --git a/mojo/services/view_manager/view_manager_connection.h b/mojo/services/view_manager/view_manager_connection.h |
index f7062bc1e77211fb631867dc778d2b16268e8a11..247d33aa527efaa622d4e6de0801cc144e9fc77c 100644 |
--- a/mojo/services/view_manager/view_manager_connection.h |
+++ b/mojo/services/view_manager/view_manager_connection.h |
@@ -9,7 +9,6 @@ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
-#include "mojo/public/cpp/shell/service.h" |
#include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" |
#include "mojo/services/view_manager/ids.h" |
#include "mojo/services/view_manager/node_delegate.h" |
@@ -32,13 +31,14 @@ class View; |
// Manages a connection from the client. |
class MOJO_VIEW_MANAGER_EXPORT ViewManagerConnection |
- : public ServiceConnection<IViewManager, ViewManagerConnection, |
- RootNodeManager>, |
+ : public InterfaceImpl<IViewManager>, |
public NodeDelegate { |
public: |
- ViewManagerConnection(); |
+ ViewManagerConnection(RootNodeManager* root_node_manager); |
virtual ~ViewManagerConnection(); |
+ virtual void OnConnectionError() MOJO_OVERRIDE; |
+ |
TransportConnectionId id() const { return id_; } |
// Invoked when connection is established. |
@@ -125,7 +125,7 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerConnection |
virtual void OnNodeViewReplaced(const NodeId& node, |
const ViewId& new_view_id, |
const ViewId& old_view_id) OVERRIDE; |
- |
+ RootNodeManager* root_node_manager_; |
IViewManagerClient* client_; |
// Id of this connection as assigned by RootNodeManager. Assigned in |