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 | 48 |
50 // Returns the View with the specified id. | 49 // Returns the View with the specified id. |
51 View* GetView(const ViewId& id); | 50 View* GetView(const ViewId& id); |
52 | 51 |
53 // The following methods are invoked after the corresponding change has been | 52 // The following methods are invoked after the corresponding change has been |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 147 |
149 #if defined(OS_WIN) | 148 #if defined(OS_WIN) |
150 #pragma warning(pop) | 149 #pragma warning(pop) |
151 #endif | 150 #endif |
152 | 151 |
153 } // namespace service | 152 } // namespace service |
154 } // namespace view_manager | 153 } // namespace view_manager |
155 } // namespace mojo | 154 } // namespace mojo |
156 | 155 |
157 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ | 156 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ |
OLD | NEW |