Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(524)

Side by Side Diff: mojo/services/view_manager/view_manager_connection.h

Issue 289873008: Mojo: Make overriding OnConnectionError optional (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698