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.
5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_
12 // Clients that want to use default DevTools front-end implementation should
13 // implement this interface to provide access to the embedding browser from
15 class DevToolsFrontendHostDelegate {
17 virtual ~DevToolsFrontendHostDelegate() {}
19 // Dispatch the message from the frontend to the frontend host.
20 virtual void DispatchOnEmbedder(const std::string& message) = 0;
22 // This method is called when the contents inspected by this devtools frontend
24 virtual void InspectedContentsClosing() = 0;
27 } // namespace content
29 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_