OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 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_AGENT_HOST_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_CLIENT_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "content/common/content_export.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class DevToolsAgentHost; |
| 16 |
| 17 // DevToolsAgentHostClient can attach to a DevToolsAgentHost and start |
| 18 // debugging it. |
| 19 class CONTENT_EXPORT DevToolsAgentHostClient { |
| 20 public: |
| 21 virtual ~DevToolsAgentHostClient() {} |
| 22 |
| 23 // Dispatches given protocol message on the client. |
| 24 virtual void DispatchProtocolMessage(DevToolsAgentHost* agent_host, |
| 25 const std::string& message) = 0; |
| 26 |
| 27 // This method is called when attached agent host is closed. |
| 28 virtual void AgentHostClosed(DevToolsAgentHost* agent_host, |
| 29 bool replaced_with_another_client) = 0; |
| 30 }; |
| 31 |
| 32 } // namespace content |
| 33 |
| 34 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_CLIENT_H_ |
OLD | NEW |