Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Side by Side Diff: chrome/browser/extensions/api/debugger/debugger_api.h

Issue 2273063002: DevTools: remove DevToolsTargetDescriptor and its implementations, we are now based on devtools age… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698