OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ |
6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 | 12 |
13 namespace IPC { | 13 namespace IPC { |
14 class Message; | 14 class Message; |
15 } | 15 } |
16 | 16 |
| 17 namespace content { |
| 18 |
17 // Describes interface for managing devtools agents from the browser process. | 19 // Describes interface for managing devtools agents from the browser process. |
18 class CONTENT_EXPORT DevToolsAgentHost { | 20 class CONTENT_EXPORT DevToolsAgentHost { |
19 public: | 21 public: |
20 class CONTENT_EXPORT CloseListener { | 22 class CONTENT_EXPORT CloseListener { |
21 public: | 23 public: |
22 virtual void AgentHostClosing(DevToolsAgentHost*) = 0; | 24 virtual void AgentHostClosing(DevToolsAgentHost*) = 0; |
23 protected: | 25 protected: |
24 virtual ~CloseListener() {} | 26 virtual ~CloseListener() {} |
25 }; | 27 }; |
26 | 28 |
(...skipping 14 matching lines...) Expand all Loading... |
41 | 43 |
42 protected: | 44 protected: |
43 DevToolsAgentHost(); | 45 DevToolsAgentHost(); |
44 virtual ~DevToolsAgentHost() {} | 46 virtual ~DevToolsAgentHost() {} |
45 | 47 |
46 void NotifyCloseListener(); | 48 void NotifyCloseListener(); |
47 | 49 |
48 CloseListener* close_listener_; | 50 CloseListener* close_listener_; |
49 }; | 51 }; |
50 | 52 |
| 53 } // namespace content |
| 54 |
51 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ | 55 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |