// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ #define COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ #include #include "components/mus/public/cpp/types.h" #include "components/mus/public/interfaces/window_tree.mojom.h" #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" namespace mus { namespace ws { class ClientConnection; class ConnectionManager; struct WindowId; class ConnectionManagerDelegate { public: virtual void OnNoMoreRootConnections() = 0; // Creates a ClientConnection in response to Embed() calls on the // ConnectionManager. virtual ClientConnection* CreateClientConnectionForEmbedAtWindow( ConnectionManager* connection_manager, mojo::InterfaceRequest tree_request, ConnectionSpecificId creator_id, const WindowId& root_id, uint32_t policy_bitmask, mojom::WindowTreeClientPtr client) = 0; protected: virtual ~ConnectionManagerDelegate() {} }; } // namespace ws } // namespace mus #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_