| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 DebuggerSendCommandFunction(); | 79 DebuggerSendCommandFunction(); |
| 80 void SendResponseBody(base::DictionaryValue* result); | 80 void SendResponseBody(base::DictionaryValue* result); |
| 81 | 81 |
| 82 protected: | 82 protected: |
| 83 virtual ~DebuggerSendCommandFunction(); | 83 virtual ~DebuggerSendCommandFunction(); |
| 84 | 84 |
| 85 // ExtensionFunction: | 85 // ExtensionFunction: |
| 86 virtual bool RunImpl() OVERRIDE; | 86 virtual bool RunImpl() OVERRIDE; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 // Implements the debugger.getTargets() extension function. |
| 90 class DebuggerGetTargetsFunction : public DebuggerFunction { |
| 91 public: |
| 92 DECLARE_EXTENSION_FUNCTION("debugger.getTargets", DEBUGGER_ATTACH) |
| 93 |
| 94 DebuggerGetTargetsFunction(); |
| 95 |
| 96 protected: |
| 97 virtual ~DebuggerGetTargetsFunction(); |
| 98 |
| 99 // ExtensionFunction: |
| 100 virtual bool RunImpl() OVERRIDE; |
| 101 }; |
| 102 |
| 89 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ | 103 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ |
| OLD | NEW |