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 |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 bool InitWebContents(); | 33 bool InitWebContents(); |
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_; |
39 }; | 39 }; |
40 | 40 |
41 // Implements the debugger.attach() extension function. | 41 // Implements the debugger.attach() extension function. |
42 class DebuggerAttachFunction : public DebuggerFunction { | 42 class AttachDebuggerFunction : public DebuggerFunction { |
43 public: | 43 public: |
44 DECLARE_EXTENSION_FUNCTION_NAME("debugger.attach") | 44 DECLARE_EXTENSION_FUNCTION_NAME("debugger.attach") |
45 | 45 |
46 DebuggerAttachFunction(); | 46 AttachDebuggerFunction(); |
47 | 47 |
48 protected: | 48 protected: |
49 virtual ~DebuggerAttachFunction(); | 49 virtual ~AttachDebuggerFunction(); |
50 | 50 |
51 // ExtensionFunction: | 51 // ExtensionFunction: |
52 virtual bool RunImpl() OVERRIDE; | 52 virtual bool RunImpl() OVERRIDE; |
53 }; | 53 }; |
54 | 54 |
55 // Implements the debugger.detach() extension function. | 55 // Implements the debugger.detach() extension function. |
56 class DebuggerDetachFunction : public DebuggerFunction { | 56 class DetachDebuggerFunction : public DebuggerFunction { |
57 public: | 57 public: |
58 DECLARE_EXTENSION_FUNCTION_NAME("debugger.detach") | 58 DECLARE_EXTENSION_FUNCTION_NAME("debugger.detach") |
59 | 59 |
60 DebuggerDetachFunction(); | 60 DetachDebuggerFunction(); |
61 | 61 |
62 protected: | 62 protected: |
63 virtual ~DebuggerDetachFunction(); | 63 virtual ~DetachDebuggerFunction(); |
64 | 64 |
65 // ExtensionFunction: | 65 // ExtensionFunction: |
66 virtual bool RunImpl() OVERRIDE; | 66 virtual bool RunImpl() OVERRIDE; |
67 }; | 67 }; |
68 | 68 |
69 // Implements the debugger.sendCommand() extension function. | 69 // Implements the debugger.sendCommand() extension function. |
70 class DebuggerSendCommandFunction : public DebuggerFunction { | 70 class SendCommandDebuggerFunction : public DebuggerFunction { |
71 public: | 71 public: |
72 DECLARE_EXTENSION_FUNCTION_NAME("debugger.sendCommand") | 72 DECLARE_EXTENSION_FUNCTION_NAME("debugger.sendCommand") |
73 | 73 |
74 DebuggerSendCommandFunction(); | 74 SendCommandDebuggerFunction(); |
75 void SendResponseBody(base::DictionaryValue* result); | 75 void SendResponseBody(base::DictionaryValue* result); |
76 | 76 |
77 protected: | 77 protected: |
78 virtual ~DebuggerSendCommandFunction(); | 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_API_DEBUGGER_DEBUGGER_API_H_ | 84 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ |
OLD | NEW |