| 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 SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_ | |
| 6 #define SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "mojo/public/cpp/bindings/interface_request.h" | |
| 11 #include "mojo/services/view_manager/cpp/types.h" | |
| 12 | |
| 13 namespace mojo { | |
| 14 class ViewManagerService; | |
| 15 } | |
| 16 | |
| 17 namespace view_manager { | |
| 18 | |
| 19 class ClientConnection; | |
| 20 class ConnectionManager; | |
| 21 struct ViewId; | |
| 22 | |
| 23 class ConnectionManagerDelegate { | |
| 24 public: | |
| 25 virtual void OnLostConnectionToWindowManager() = 0; | |
| 26 | |
| 27 // Creates a ClientConnection in response to Embed() calls on the | |
| 28 // ConnectionManager. | |
| 29 virtual ClientConnection* CreateClientConnectionForEmbedAtView( | |
| 30 ConnectionManager* connection_manager, | |
| 31 mojo::InterfaceRequest<mojo::ViewManagerService> service_request, | |
| 32 mojo::ConnectionSpecificId creator_id, | |
| 33 const std::string& creator_url, | |
| 34 const std::string& url, | |
| 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 std::string& creator_url, | |
| 41 const ViewId& root_id, | |
| 42 mojo::ViewManagerClientPtr view_manager_client) = 0; | |
| 43 | |
| 44 protected: | |
| 45 virtual ~ConnectionManagerDelegate() {} | |
| 46 }; | |
| 47 | |
| 48 } // namespace view_manager | |
| 49 | |
| 50 #endif // SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_ | |
| OLD | NEW |