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

Side by Side Diff: chrome/browser/extensions/extension_debugger_api.h

Issue 10762006: Moved c/b/e/*debugger* to c/b/e/api/debugger/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync with trunk Created 8 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 // Defines the Chrome Extensions Debugger API functions for attaching debugger
6 // to the page.
7
8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DEBUGGER_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DEBUGGER_API_H_
10
11 #include <string>
12
13 #include "chrome/browser/extensions/extension_function.h"
14
15 // Base debugger function.
16
17 class ExtensionDevToolsClientHost;
18
19 namespace base {
20 class DictionaryValue;
21 }
22
23 namespace content {
24 class WebContents;
25 }
26
27 class DebuggerFunction : public AsyncExtensionFunction {
28 protected:
29 DebuggerFunction();
30 virtual ~DebuggerFunction() {}
31
32 bool InitTabContents();
33 bool InitClientHost();
34
35 content::WebContents* contents_;
36 int tab_id_;
37 ExtensionDevToolsClientHost* client_host_;
38 };
39
40 // Implements the debugger.attach() extension function.
41 class AttachDebuggerFunction : public DebuggerFunction {
42 public:
43 DECLARE_EXTENSION_FUNCTION_NAME("debugger.attach")
44
45 AttachDebuggerFunction();
46
47 protected:
48 virtual ~AttachDebuggerFunction();
49
50 // ExtensionFunction:
51 virtual bool RunImpl() OVERRIDE;
52 };
53
54 // Implements the debugger.detach() extension function.
55 class DetachDebuggerFunction : public DebuggerFunction {
56 public:
57 DECLARE_EXTENSION_FUNCTION_NAME("debugger.detach")
58
59 DetachDebuggerFunction();
60
61 protected:
62 virtual ~DetachDebuggerFunction();
63
64 // ExtensionFunction:
65 virtual bool RunImpl() OVERRIDE;
66 };
67
68 // Implements the debugger.sendCommand() extension function.
69 class SendCommandDebuggerFunction : public DebuggerFunction {
70 public:
71 DECLARE_EXTENSION_FUNCTION_NAME("debugger.sendCommand")
72
73 SendCommandDebuggerFunction();
74 void SendResponseBody(base::DictionaryValue* dictionary);
75
76 protected:
77 virtual ~SendCommandDebuggerFunction();
78
79 // ExtensionFunction:
80 virtual bool RunImpl() OVERRIDE;
81 };
82
83 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/debugger/debugger_apitest.cc ('k') | chrome/browser/extensions/extension_debugger_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698