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_EXTENSION_DEBUGGER_API_H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ |
9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DEBUGGER_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ |
10 #pragma once | 10 #pragma once |
Mihai Parparita -not on Chrome
2012/07/11 22:44:26
FWIW, #pragma once is now banned
| |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "chrome/browser/extensions/extension_function.h" | 14 #include "chrome/browser/extensions/extension_function.h" |
15 | 15 |
16 // Base debugger function. | 16 // Base debugger function. |
17 | 17 |
18 class ExtensionDevToolsClientHost; | 18 class ExtensionDevToolsClientHost; |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class DictionaryValue; | 21 class DictionaryValue; |
22 } | 22 } |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 class WebContents; | 25 class WebContents; |
26 } | 26 } |
27 | 27 |
28 class DebuggerFunction : public AsyncExtensionFunction { | 28 class DebuggerFunction : public AsyncExtensionFunction { |
vabr (Chromium)
2012/07/10 07:37:32
Consider putting this class and its derivatives in
| |
29 protected: | 29 protected: |
30 DebuggerFunction(); | 30 DebuggerFunction(); |
31 virtual ~DebuggerFunction() {} | 31 virtual ~DebuggerFunction() {} |
32 | 32 |
33 bool InitTabContents(); | 33 bool InitTabContents(); |
34 bool InitClientHost(); | 34 bool InitClientHost(); |
35 | 35 |
36 content::WebContents* contents_; | 36 content::WebContents* contents_; |
37 int tab_id_; | 37 int tab_id_; |
38 ExtensionDevToolsClientHost* client_host_; | 38 ExtensionDevToolsClientHost* client_host_; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 SendCommandDebuggerFunction(); | 74 SendCommandDebuggerFunction(); |
75 void SendResponseBody(base::DictionaryValue* dictionary); | 75 void SendResponseBody(base::DictionaryValue* dictionary); |
76 | 76 |
77 protected: | 77 protected: |
78 virtual ~SendCommandDebuggerFunction(); | 78 virtual ~SendCommandDebuggerFunction(); |
79 | 79 |
80 // ExtensionFunction: | 80 // ExtensionFunction: |
81 virtual bool RunImpl() OVERRIDE; | 81 virtual bool RunImpl() OVERRIDE; |
82 }; | 82 }; |
83 | 83 |
84 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEBUGGER_API_H_ | 84 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ |
OLD | NEW |