OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Defines the Chrome Extensions Debugger API functions for attaching debugger | 5 // Defines the Chrome Extensions Debugger API functions for attaching debugger |
6 // to the page. | 6 // to the page. |
7 | 7 |
8 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ |
9 #define CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "chrome/browser/extensions/chrome_extension_function.h" | 14 #include "chrome/browser/extensions/chrome_extension_function.h" |
15 #include "chrome/common/extensions/api/debugger.h" | 15 #include "chrome/common/extensions/api/debugger.h" |
| 16 #include "content/public/browser/devtools_agent_host.h" |
16 | 17 |
17 using extensions::api::debugger::Debuggee; | 18 using extensions::api::debugger::Debuggee; |
18 | 19 |
19 // Base debugger function. | 20 // Base debugger function. |
20 | 21 |
21 class DevToolsTargetImpl; | |
22 | |
23 namespace base { | 22 namespace base { |
24 class DictionaryValue; | 23 class DictionaryValue; |
25 } | 24 } |
26 | 25 |
27 namespace content { | 26 namespace content { |
28 class DevToolsAgentHost; | |
29 class WebContents; | 27 class WebContents; |
30 } | 28 } |
31 | 29 |
32 namespace extensions { | 30 namespace extensions { |
33 class ExtensionDevToolsClientHost; | 31 class ExtensionDevToolsClientHost; |
34 | 32 |
35 class DebuggerFunction : public ChromeAsyncExtensionFunction { | 33 class DebuggerFunction : public ChromeAsyncExtensionFunction { |
36 protected: | 34 protected: |
37 DebuggerFunction(); | 35 DebuggerFunction(); |
38 ~DebuggerFunction() override; | 36 ~DebuggerFunction() override; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 95 |
98 DebuggerGetTargetsFunction(); | 96 DebuggerGetTargetsFunction(); |
99 | 97 |
100 protected: | 98 protected: |
101 ~DebuggerGetTargetsFunction() override; | 99 ~DebuggerGetTargetsFunction() override; |
102 | 100 |
103 // ExtensionFunction: | 101 // ExtensionFunction: |
104 bool RunAsync() override; | 102 bool RunAsync() override; |
105 | 103 |
106 private: | 104 private: |
107 void SendTargetList(const std::vector<DevToolsTargetImpl*>& target_list); | 105 void SendTargetList(const content::DevToolsAgentHost::List& target_list); |
108 }; | 106 }; |
109 | 107 |
110 } // namespace extensions | 108 } // namespace extensions |
111 | 109 |
112 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ | 110 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ |
OLD | NEW |