Popular sites on the NTP: Try to keep the ordering constant
[chromium-blink-merge.git] / content / public / browser / devtools_external_agent_proxy_delegate.h
blob3d55c9a7ec525f9ffe125b0908f875f448d6e832
1 // Copyright (c) 2013 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_EXTERNAL_AGENT_PROXY_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_
8 #include <string>
10 #include "content/common/content_export.h"
12 namespace content {
14 class DevToolsExternalAgentProxy;
16 // Describes the interface for sending messages to an external DevTools agent.
17 class DevToolsExternalAgentProxyDelegate {
18 public:
19 virtual ~DevToolsExternalAgentProxyDelegate() {}
21 // Informs the agent that a client host has attached.
22 virtual void Attach(DevToolsExternalAgentProxy* proxy) = 0;
24 // Informs the agent that a client host has detached.
25 virtual void Detach() = 0;
27 // Sends a message to the agent.
28 virtual void SendMessageToBackend(const std::string& message) = 0;
31 } // namespace content
33 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_