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 SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ | 5 #ifndef SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ |
6 #define SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ | 6 #define SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 ~ConnectionManager() override; | 70 ~ConnectionManager() override; |
71 | 71 |
72 // Returns the id for the next ViewManagerServiceImpl. | 72 // Returns the id for the next ViewManagerServiceImpl. |
73 mojo::ConnectionSpecificId GetAndAdvanceNextConnectionId(); | 73 mojo::ConnectionSpecificId GetAndAdvanceNextConnectionId(); |
74 | 74 |
75 // Invoked when a ViewManagerServiceImpl's connection encounters an error. | 75 // Invoked when a ViewManagerServiceImpl's connection encounters an error. |
76 void OnConnectionError(ClientConnection* connection); | 76 void OnConnectionError(ClientConnection* connection); |
77 | 77 |
78 // See description of ViewManagerService::Embed() for details. This assumes | 78 // See description of ViewManagerService::Embed() for details. This assumes |
79 // |transport_view_id| is valid. | 79 // |transport_view_id| is valid. |
80 void EmbedAtView( | 80 void EmbedAtView(mojo::ConnectionSpecificId creator_id, |
81 mojo::ConnectionSpecificId creator_id, | 81 const std::string& url, |
82 const std::string& url, | 82 const ViewId& view_id, |
83 const ViewId& view_id, | 83 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
84 mojo::InterfaceRequest<mojo::ServiceProvider> service_provider); | 84 mojo::ServiceProviderPtr exposed_services); |
85 | 85 |
86 // Returns the connection by id. | 86 // Returns the connection by id. |
87 ViewManagerServiceImpl* GetConnection( | 87 ViewManagerServiceImpl* GetConnection( |
88 mojo::ConnectionSpecificId connection_id); | 88 mojo::ConnectionSpecificId connection_id); |
89 | 89 |
90 // Returns the View identified by |id|. | 90 // Returns the View identified by |id|. |
91 ServerView* GetView(const ViewId& id); | 91 ServerView* GetView(const ViewId& id); |
92 | 92 |
93 ServerView* root() { return root_.get(); } | 93 ServerView* root() { return root_.get(); } |
94 DisplayManager* display_manager() { return display_manager_.get(); } | 94 DisplayManager* display_manager() { return display_manager_.get(); } |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 base::RepeatingTimer<ConnectionManager> animation_timer_; | 225 base::RepeatingTimer<ConnectionManager> animation_timer_; |
226 | 226 |
227 AnimationRunner animation_runner_; | 227 AnimationRunner animation_runner_; |
228 | 228 |
229 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); | 229 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); |
230 }; | 230 }; |
231 | 231 |
232 } // namespace view_manager | 232 } // namespace view_manager |
233 | 233 |
234 #endif // SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ | 234 #endif // SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_H_ |
OLD | NEW |