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

Side by Side Diff: components/view_manager/connection_manager_delegate.h

Issue 1314953002: Rename ViewManagerService,ViewManagerClient -> ViewTree,ViewTreeClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 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
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 COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_
6 #define COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_ 6 #define COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/view_manager/public/cpp/types.h" 10 #include "components/view_manager/public/cpp/types.h"
11 #include "components/view_manager/public/interfaces/view_manager.mojom.h" 11 #include "components/view_manager/public/interfaces/view_tree.mojom.h"
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 class ViewManagerService; 15 class ViewTree;
16 } 16 }
17 17
18 namespace view_manager { 18 namespace view_manager {
19 19
20 class ClientConnection; 20 class ClientConnection;
21 class ConnectionManager; 21 class ConnectionManager;
22 struct ViewId; 22 struct ViewId;
23 23
24 class ConnectionManagerDelegate { 24 class ConnectionManagerDelegate {
25 public: 25 public:
26 virtual void OnNoMoreRootConnections() = 0; 26 virtual void OnNoMoreRootConnections() = 0;
27 27
28 // Creates a ClientConnection in response to Embed() calls on the 28 // Creates a ClientConnection in response to Embed() calls on the
29 // ConnectionManager. 29 // ConnectionManager.
30 virtual ClientConnection* CreateClientConnectionForEmbedAtView( 30 virtual ClientConnection* CreateClientConnectionForEmbedAtView(
31 ConnectionManager* connection_manager, 31 ConnectionManager* connection_manager,
32 mojo::InterfaceRequest<mojo::ViewManagerService> service_request, 32 mojo::InterfaceRequest<mojo::ViewTree> tree_request,
33 mojo::ConnectionSpecificId creator_id, 33 mojo::ConnectionSpecificId creator_id,
34 mojo::URLRequestPtr request, 34 mojo::URLRequestPtr request,
35 const ViewId& root_id) = 0; 35 const ViewId& root_id) = 0;
36 virtual ClientConnection* CreateClientConnectionForEmbedAtView( 36 virtual ClientConnection* CreateClientConnectionForEmbedAtView(
37 ConnectionManager* connection_manager, 37 ConnectionManager* connection_manager,
38 mojo::InterfaceRequest<mojo::ViewManagerService> service_request, 38 mojo::InterfaceRequest<mojo::ViewTree> tree_request,
39 mojo::ConnectionSpecificId creator_id, 39 mojo::ConnectionSpecificId creator_id,
40 const ViewId& root_id, 40 const ViewId& root_id,
41 mojo::ViewManagerClientPtr view_manager_client) = 0; 41 mojo::ViewTreeClientPtr client) = 0;
42 42
43 protected: 43 protected:
44 virtual ~ConnectionManagerDelegate() {} 44 virtual ~ConnectionManagerDelegate() {}
45 }; 45 };
46 46
47 } // namespace view_manager 47 } // namespace view_manager
48 48
49 #endif // COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_ 49 #endif // COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/view_manager/connection_manager.cc ('k') | components/view_manager/display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698