Animate hiding security button on custom tab toolbar
[chromium-blink-merge.git] / components / view_manager / connection_manager_delegate.h
blobcc7b8ecb2d5e23e47d706f5edaf7c6fd65e3576d
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.
5 #ifndef COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_
6 #define COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_
8 #include <string>
10 #include "components/view_manager/public/cpp/types.h"
11 #include "components/view_manager/public/interfaces/view_manager.mojom.h"
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
14 namespace mojo {
15 class ViewManagerService;
18 namespace view_manager {
20 class ClientConnection;
21 class ConnectionManager;
22 struct ViewId;
24 class ConnectionManagerDelegate {
25 public:
26 virtual void OnNoMoreRootConnections() = 0;
28 // Creates a ClientConnection in response to Embed() calls on the
29 // ConnectionManager.
30 virtual ClientConnection* CreateClientConnectionForEmbedAtView(
31 ConnectionManager* connection_manager,
32 mojo::InterfaceRequest<mojo::ViewManagerService> service_request,
33 mojo::ConnectionSpecificId creator_id,
34 mojo::URLRequestPtr request,
35 const ViewId& root_id) = 0;
36 virtual ClientConnection* CreateClientConnectionForEmbedAtView(
37 ConnectionManager* connection_manager,
38 mojo::InterfaceRequest<mojo::ViewManagerService> service_request,
39 mojo::ConnectionSpecificId creator_id,
40 const ViewId& root_id,
41 mojo::ViewManagerClientPtr view_manager_client) = 0;
43 protected:
44 virtual ~ConnectionManagerDelegate() {}
47 } // namespace view_manager
49 #endif // COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_