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 #include "content/public/browser/devtools_agent_host.h" |
17 | 17 |
18 using extensions::api::debugger::Debuggee; | 18 using extensions::api::debugger::Debuggee; |
19 | 19 |
20 // Base debugger function. | 20 // Base debugger function. |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 class DictionaryValue; | 23 class DictionaryValue; |
24 } | 24 } |
25 | 25 |
26 namespace content { | |
27 class WebContents; | |
28 } | |
29 | |
30 namespace extensions { | 26 namespace extensions { |
31 class ExtensionDevToolsClientHost; | 27 class ExtensionDevToolsClientHost; |
32 | 28 |
33 class DebuggerFunction : public ChromeAsyncExtensionFunction { | 29 class DebuggerFunction : public ChromeAsyncExtensionFunction { |
34 protected: | 30 protected: |
35 DebuggerFunction(); | 31 DebuggerFunction(); |
36 ~DebuggerFunction() override; | 32 ~DebuggerFunction() override; |
37 | 33 |
38 void FormatErrorMessage(const std::string& format); | 34 void FormatErrorMessage(const std::string& format); |
39 | 35 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // ExtensionFunction: | 97 // ExtensionFunction: |
102 bool RunAsync() override; | 98 bool RunAsync() override; |
103 | 99 |
104 private: | 100 private: |
105 void SendTargetList(const content::DevToolsAgentHost::List& target_list); | 101 void SendTargetList(const content::DevToolsAgentHost::List& target_list); |
106 }; | 102 }; |
107 | 103 |
108 } // namespace extensions | 104 } // namespace extensions |
109 | 105 |
110 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ | 106 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ |
OLD | NEW |