devtools_external_agent_proxy_delegate.h revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
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.
4
5#ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_
6#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_
7
8#include <string>
9
10#include "content/common/content_export.h"
11
12namespace content {
13
14// Describes the interface for sending messages to an external DevTools agent.
15class DevToolsExternalAgentProxyDelegate {
16 public:
17   // Informs the agent that a client host has attached.
18   virtual void Attach() = 0;
19
20   // Informs the agent that a client host has detached.
21   virtual void Detach() = 0;
22
23   // Sends a message to the agent.
24   virtual void SendMessageToBackend(const std::string& message) = 0;
25
26 protected:
27  virtual ~DevToolsExternalAgentProxyDelegate() {}
28};
29
30}  // namespace content
31
32#endif  // CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_
33