| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 // Clients that want to use default DevTools front-end implementation should | |
| 13 // implement this interface to provide access to the embedding browser from | |
| 14 // the front-end. | |
| 15 class DevToolsFrontendHostDelegate { | |
| 16 public: | |
| 17 virtual ~DevToolsFrontendHostDelegate() {} | |
| 18 | |
| 19 // Dispatch the message from the frontend to the frontend host. | |
| 20 virtual void DispatchOnEmbedder(const std::string& message) = 0; | |
| 21 | |
| 22 // This method is called when the contents inspected by this devtools frontend | |
| 23 // is closing. | |
| 24 virtual void InspectedContentsClosing() = 0; | |
| 25 }; | |
| 26 | |
| 27 } // namespace content | |
| 28 | |
| 29 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ | |
| OLD | NEW |