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 // 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_EXTENSION_DEBUGGER_API_H_ |
9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DEBUGGER_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DEBUGGER_API_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 16 matching lines...) Expand all Loading... |
27 bool InitClientHost(int tab_id); | 27 bool InitClientHost(int tab_id); |
28 | 28 |
29 TabContents* contents_; | 29 TabContents* contents_; |
30 ExtensionDevToolsClientHost* client_host_; | 30 ExtensionDevToolsClientHost* client_host_; |
31 }; | 31 }; |
32 | 32 |
33 // Implements the debugger.attach() extension function. | 33 // Implements the debugger.attach() extension function. |
34 class AttachDebuggerFunction : public DebuggerFunction { | 34 class AttachDebuggerFunction : public DebuggerFunction { |
35 public: | 35 public: |
36 AttachDebuggerFunction(); | 36 AttachDebuggerFunction(); |
37 ~AttachDebuggerFunction(); | 37 virtual ~AttachDebuggerFunction(); |
38 virtual bool RunImpl(); | 38 virtual bool RunImpl(); |
39 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.attach") | 39 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.attach") |
40 }; | 40 }; |
41 | 41 |
42 // Implements the debugger.detach() extension function. | 42 // Implements the debugger.detach() extension function. |
43 class DetachDebuggerFunction : public DebuggerFunction { | 43 class DetachDebuggerFunction : public DebuggerFunction { |
44 public: | 44 public: |
45 DetachDebuggerFunction(); | 45 DetachDebuggerFunction(); |
46 ~DetachDebuggerFunction(); | 46 virtual ~DetachDebuggerFunction(); |
47 virtual bool RunImpl(); | 47 virtual bool RunImpl(); |
48 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.detach") | 48 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.detach") |
49 }; | 49 }; |
50 | 50 |
51 // Implements the debugger.sendRequest() extension function. | 51 // Implements the debugger.sendRequest() extension function. |
52 class SendRequestDebuggerFunction : public DebuggerFunction { | 52 class SendRequestDebuggerFunction : public DebuggerFunction { |
53 public: | 53 public: |
54 SendRequestDebuggerFunction(); | 54 SendRequestDebuggerFunction(); |
55 ~SendRequestDebuggerFunction(); | 55 virtual ~SendRequestDebuggerFunction(); |
56 virtual bool RunImpl(); | 56 virtual bool RunImpl(); |
57 | 57 |
58 void SendResponseBody(DictionaryValue* dictionary); | 58 void SendResponseBody(DictionaryValue* dictionary); |
59 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.sendRequest") | 59 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.sendRequest") |
60 }; | 60 }; |
61 | 61 |
62 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEBUGGER_API_H_ | 62 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEBUGGER_API_H_ |
OLD | NEW |