OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // Manages a connection from the client. | 34 // Manages a connection from the client. |
35 class MOJO_VIEW_MANAGER_EXPORT ViewManagerConnection | 35 class MOJO_VIEW_MANAGER_EXPORT ViewManagerConnection |
36 : public InterfaceImpl<IViewManager>, | 36 : public InterfaceImpl<IViewManager>, |
37 public NodeDelegate { | 37 public NodeDelegate { |
38 public: | 38 public: |
39 ViewManagerConnection(RootNodeManager* root_node_manager); | 39 ViewManagerConnection(RootNodeManager* root_node_manager); |
40 virtual ~ViewManagerConnection(); | 40 virtual ~ViewManagerConnection(); |
41 | 41 |
42 virtual void OnConnectionEstablished() MOJO_OVERRIDE; | 42 virtual void OnConnectionEstablished() MOJO_OVERRIDE; |
43 virtual void OnConnectionError() MOJO_OVERRIDE; | |
44 | 43 |
45 TransportConnectionId id() const { return id_; } | 44 TransportConnectionId id() const { return id_; } |
46 | 45 |
47 // Returns the Node with the specified id. | 46 // Returns the Node with the specified id. |
48 Node* GetNode(const NodeId& id) { | 47 Node* GetNode(const NodeId& id) { |
49 return const_cast<Node*>( | 48 return const_cast<Node*>( |
50 const_cast<const ViewManagerConnection*>(this)->GetNode(id)); | 49 const_cast<const ViewManagerConnection*>(this)->GetNode(id)); |
51 } | 50 } |
52 const Node* GetNode(const NodeId& id) const; | 51 const Node* GetNode(const NodeId& id) const; |
53 | 52 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 157 |
159 #if defined(OS_WIN) | 158 #if defined(OS_WIN) |
160 #pragma warning(pop) | 159 #pragma warning(pop) |
161 #endif | 160 #endif |
162 | 161 |
163 } // namespace service | 162 } // namespace service |
164 } // namespace view_manager | 163 } // namespace view_manager |
165 } // namespace mojo | 164 } // namespace mojo |
166 | 165 |
167 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ | 166 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ |
OLD | NEW |