OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_MUS_CONNECTION_MANAGER_DELEGATE_H_ | |
6 #define COMPONENTS_MUS_CONNECTION_MANAGER_DELEGATE_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "components/mus/public/cpp/types.h" | |
11 #include "components/mus/public/interfaces/view_tree.mojom.h" | |
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" | |
13 | |
14 namespace mus { | |
15 | |
16 class ClientConnection; | |
17 class ConnectionManager; | |
18 struct ViewId; | |
19 class ViewTree; | |
20 | |
21 class ConnectionManagerDelegate { | |
22 public: | |
23 virtual void OnNoMoreRootConnections() = 0; | |
24 | |
25 // Creates a ClientConnection in response to Embed() calls on the | |
26 // ConnectionManager. | |
27 virtual ClientConnection* CreateClientConnectionForEmbedAtView( | |
28 ConnectionManager* connection_manager, | |
29 mojo::InterfaceRequest<mojo::ViewTree> tree_request, | |
30 ConnectionSpecificId creator_id, | |
31 mojo::URLRequestPtr request, | |
32 const ViewId& root_id, | |
33 uint32_t policy_bitmask) = 0; | |
34 virtual ClientConnection* CreateClientConnectionForEmbedAtView( | |
35 ConnectionManager* connection_manager, | |
36 mojo::InterfaceRequest<mojo::ViewTree> tree_request, | |
37 ConnectionSpecificId creator_id, | |
38 const ViewId& root_id, | |
39 uint32_t policy_bitmask, | |
40 mojo::ViewTreeClientPtr client) = 0; | |
41 | |
42 protected: | |
43 virtual ~ConnectionManagerDelegate() {} | |
44 }; | |
45 | |
46 } // namespace mus | |
47 | |
48 #endif // COMPONENTS_MUS_CONNECTION_MANAGER_DELEGATE_H_ | |
OLD | NEW |