Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(544)

Side by Side Diff: chrome/browser/extensions/api/debugger/debugger_api.h

Issue 12319114: Extract debugger target enumeration into a separate class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@debugger
Patch Set: Cleaner version ready for review Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698