| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 class DevToolsAgentHost; | |
| 15 class DevToolsExternalAgentProxyDelegate; | |
| 16 | |
| 17 // Describes interface for communication with an external DevTools agent. | 14 // Describes interface for communication with an external DevTools agent. |
| 18 class DevToolsExternalAgentProxy { | 15 class DevToolsExternalAgentProxy { |
| 19 public: | 16 public: |
| 20 // Sends the message to the client host. | 17 // Sends the message to the client host. |
| 21 virtual void DispatchOnClientHost(const std::string& message) = 0; | 18 virtual void DispatchOnClientHost(const std::string& message) = 0; |
| 22 | 19 |
| 23 // Informs the client that the connection has closed. | 20 // Informs the client that the connection has closed. |
| 24 virtual void ConnectionClosed() = 0; | 21 virtual void ConnectionClosed() = 0; |
| 25 | 22 |
| 26 virtual ~DevToolsExternalAgentProxy() {} | 23 virtual ~DevToolsExternalAgentProxy() {} |
| 27 }; | 24 }; |
| 28 | 25 |
| 29 } // namespace content | 26 } // namespace content |
| 30 | 27 |
| 31 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_ | 28 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_ |
| OLD | NEW |