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_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_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 BrowserContext; | |
15 class DevToolsExternalAgentProxy; | 14 class DevToolsExternalAgentProxy; |
16 | 15 |
17 // Describes the interface for sending messages to an external DevTools agent. | 16 // Describes the interface for sending messages to an external DevTools agent. |
18 class DevToolsExternalAgentProxyDelegate { | 17 class DevToolsExternalAgentProxyDelegate { |
19 public: | 18 public: |
20 virtual ~DevToolsExternalAgentProxyDelegate() {} | 19 virtual ~DevToolsExternalAgentProxyDelegate() {} |
21 | 20 |
22 // Informs the agent that a client host has attached. | 21 // Informs the agent that a client host has attached. |
23 virtual void Attach(DevToolsExternalAgentProxy* proxy) = 0; | 22 virtual void Attach(DevToolsExternalAgentProxy* proxy) = 0; |
24 | 23 |
(...skipping 27 matching lines...) Expand all Loading... |
52 // Reloads agent host. | 51 // Reloads agent host. |
53 virtual bool Close() = 0; | 52 virtual bool Close() = 0; |
54 | 53 |
55 // Sends a message to the agent. | 54 // Sends a message to the agent. |
56 virtual void SendMessageToBackend(const std::string& message) = 0; | 55 virtual void SendMessageToBackend(const std::string& message) = 0; |
57 }; | 56 }; |
58 | 57 |
59 } // namespace content | 58 } // namespace content |
60 | 59 |
61 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_ | 60 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_DELEGATE_H_ |
OLD | NEW |