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_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_ |
7 | 7 |
8 #include "content/browser/devtools/devtools_agent_host_impl.h" | 8 #include "content/browser/devtools/devtools_agent_host_impl.h" |
9 | 9 |
10 namespace IPC { | 10 namespace IPC { |
11 class Message; | 11 class Message; |
12 } | 12 } |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 class CONTENT_EXPORT IPCDevToolsAgentHost : public DevToolsAgentHostImpl { | 16 class CONTENT_EXPORT IPCDevToolsAgentHost : public DevToolsAgentHostImpl { |
17 public: | 17 public: |
18 // DevToolsAgentHostImpl implementation. | 18 // DevToolsAgentHostImpl implementation. |
19 virtual void Attach() OVERRIDE; | 19 virtual void Attach() override; |
20 virtual void Detach() OVERRIDE; | 20 virtual void Detach() override; |
21 virtual void DispatchProtocolMessage(const std::string& message) OVERRIDE; | 21 virtual void DispatchProtocolMessage(const std::string& message) override; |
22 virtual void InspectElement(int x, int y) OVERRIDE; | 22 virtual void InspectElement(int x, int y) override; |
23 | 23 |
24 protected: | 24 protected: |
25 virtual ~IPCDevToolsAgentHost(); | 25 virtual ~IPCDevToolsAgentHost(); |
26 | 26 |
27 void Reattach(const std::string& saved_agent_state); | 27 void Reattach(const std::string& saved_agent_state); |
28 | 28 |
29 virtual void SendMessageToAgent(IPC::Message* msg) = 0; | 29 virtual void SendMessageToAgent(IPC::Message* msg) = 0; |
30 virtual void OnClientAttached() = 0; | 30 virtual void OnClientAttached() = 0; |
31 virtual void OnClientDetached() = 0; | 31 virtual void OnClientDetached() = 0; |
32 }; | 32 }; |
33 | 33 |
34 } // namespace content | 34 } // namespace content |
35 | 35 |
36 #endif // CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_ | 36 #endif // CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |