| 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 22 matching lines...) Expand all Loading... |
| 33 TabContents* contents_; | 33 TabContents* contents_; |
| 34 int tab_id_; | 34 int tab_id_; |
| 35 ExtensionDevToolsClientHost* client_host_; | 35 ExtensionDevToolsClientHost* client_host_; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 // Implements the debugger.attach() extension function. | 38 // Implements the debugger.attach() extension function. |
| 39 class AttachDebuggerFunction : public DebuggerFunction { | 39 class AttachDebuggerFunction : public DebuggerFunction { |
| 40 public: | 40 public: |
| 41 AttachDebuggerFunction(); | 41 AttachDebuggerFunction(); |
| 42 virtual ~AttachDebuggerFunction(); | 42 virtual ~AttachDebuggerFunction(); |
| 43 virtual bool RunImpl(); | 43 virtual bool RunImpl() OVERRIDE; |
| 44 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.attach") | 44 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.attach") |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 // Implements the debugger.detach() extension function. | 47 // Implements the debugger.detach() extension function. |
| 48 class DetachDebuggerFunction : public DebuggerFunction { | 48 class DetachDebuggerFunction : public DebuggerFunction { |
| 49 public: | 49 public: |
| 50 DetachDebuggerFunction(); | 50 DetachDebuggerFunction(); |
| 51 virtual ~DetachDebuggerFunction(); | 51 virtual ~DetachDebuggerFunction(); |
| 52 virtual bool RunImpl(); | 52 virtual bool RunImpl() OVERRIDE; |
| 53 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.detach") | 53 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.detach") |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 // Implements the debugger.sendCommand() extension function. | 56 // Implements the debugger.sendCommand() extension function. |
| 57 class SendCommandDebuggerFunction : public DebuggerFunction { | 57 class SendCommandDebuggerFunction : public DebuggerFunction { |
| 58 public: | 58 public: |
| 59 SendCommandDebuggerFunction(); | 59 SendCommandDebuggerFunction(); |
| 60 virtual ~SendCommandDebuggerFunction(); | 60 virtual ~SendCommandDebuggerFunction(); |
| 61 virtual bool RunImpl(); | 61 virtual bool RunImpl() OVERRIDE; |
| 62 | 62 |
| 63 void SendResponseBody(base::DictionaryValue* dictionary); | 63 void SendResponseBody(base::DictionaryValue* dictionary); |
| 64 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.sendCommand") | 64 DECLARE_EXTENSION_FUNCTION_NAME("experimental.debugger.sendCommand") |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEBUGGER_API_H_ | 67 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEBUGGER_API_H_ |
| OLD | NEW |