| OLD | NEW |
| 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" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 virtual void OnLostConnectionToWindowManager() = 0; | 26 virtual void OnLostConnectionToWindowManager() = 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::ViewManagerService> service_request, |
| 33 mojo::ConnectionSpecificId creator_id, | 33 mojo::ConnectionSpecificId creator_id, |
| 34 const std::string& creator_url, | 34 const std::string& creator_url, |
| 35 const std::string& url, | 35 mojo::URLRequestPtr request, |
| 36 const ViewId& root_id) = 0; | 36 const ViewId& root_id) = 0; |
| 37 virtual ClientConnection* CreateClientConnectionForEmbedAtView( | 37 virtual ClientConnection* CreateClientConnectionForEmbedAtView( |
| 38 ConnectionManager* connection_manager, | 38 ConnectionManager* connection_manager, |
| 39 mojo::InterfaceRequest<mojo::ViewManagerService> service_request, | 39 mojo::InterfaceRequest<mojo::ViewManagerService> service_request, |
| 40 mojo::ConnectionSpecificId creator_id, | 40 mojo::ConnectionSpecificId creator_id, |
| 41 const std::string& creator_url, | 41 const std::string& creator_url, |
| 42 const ViewId& root_id, | 42 const ViewId& root_id, |
| 43 mojo::ViewManagerClientPtr view_manager_client) = 0; | 43 mojo::ViewManagerClientPtr view_manager_client) = 0; |
| 44 | 44 |
| 45 protected: | 45 protected: |
| 46 virtual ~ConnectionManagerDelegate() {} | 46 virtual ~ConnectionManagerDelegate() {} |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace view_manager | 49 } // namespace view_manager |
| 50 | 50 |
| 51 #endif // COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_ | 51 #endif // COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_ |
| OLD | NEW |