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