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

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

Issue 11308012: Remove some TabContentses from extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 | Annotate | Revision Log
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 12 matching lines...) Expand all
23 namespace content { 23 namespace content {
24 class DevToolsClientHost; 24 class DevToolsClientHost;
25 class WebContents; 25 class WebContents;
26 } 26 }
27 27
28 class DebuggerFunction : public AsyncExtensionFunction { 28 class DebuggerFunction : public AsyncExtensionFunction {
29 protected: 29 protected:
30 DebuggerFunction(); 30 DebuggerFunction();
31 virtual ~DebuggerFunction() {} 31 virtual ~DebuggerFunction() {}
32 32
33 bool InitTabContents(); 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 AttachDebuggerFunction : public DebuggerFunction { 42 class AttachDebuggerFunction : public DebuggerFunction {
43 public: 43 public:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 class DebuggerApi { 84 class DebuggerApi {
85 public: 85 public:
86 // Marks ExtensionDevToolsClientHost as replaced with the bundled devtools 86 // Marks ExtensionDevToolsClientHost as replaced with the bundled devtools
87 // so that we could report proper disconnect reason. 87 // so that we could report proper disconnect reason.
88 static void MarkDevToolsClientHostAsReplaced( 88 static void MarkDevToolsClientHostAsReplaced(
89 content::DevToolsClientHost* client_host); 89 content::DevToolsClientHost* client_host);
90 }; 90 };
91 91
92 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ 92 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/accessibility/accessibility_extension_api.cc ('k') | chrome/browser/extensions/api/debugger/debugger_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698