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

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

Issue 25571005: DevTools: Never instantiate DevToolsAgentHost on threads other than UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/debugger/debugger_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #include <string> 11 #include <string>
12 12
13 #include "chrome/browser/extensions/extension_function.h" 13 #include "chrome/browser/extensions/extension_function.h"
14 #include "chrome/common/extensions/api/debugger.h" 14 #include "chrome/common/extensions/api/debugger.h"
15 #include "content/public/browser/worker_service.h"
15 16
16 using extensions::api::debugger::Debuggee; 17 using extensions::api::debugger::Debuggee;
17 18
18 // Base debugger function. 19 // Base debugger function.
19 20
20 class ExtensionDevToolsClientHost; 21 class ExtensionDevToolsClientHost;
21 22
22 namespace base { 23 namespace base {
23 class DictionaryValue; 24 class DictionaryValue;
24 } 25 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 94
94 DebuggerGetTargetsFunction(); 95 DebuggerGetTargetsFunction();
95 96
96 protected: 97 protected:
97 virtual ~DebuggerGetTargetsFunction(); 98 virtual ~DebuggerGetTargetsFunction();
98 99
99 // ExtensionFunction: 100 // ExtensionFunction:
100 virtual bool RunImpl() OVERRIDE; 101 virtual bool RunImpl() OVERRIDE;
101 102
102 private: 103 private:
103 void CollectWorkerInfo(base::ListValue* list); 104 typedef std::vector<content::WorkerService::WorkerInfo> WorkerInfoList;
104 105
105 void SendTargetList(base::ListValue* list); 106 WorkerInfoList CollectWorkerInfo();
107
108 void SendTargetList(base::ListValue* list,
109 const WorkerInfoList& worker_info);
106 }; 110 };
107 111
108 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_ 112 #endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/debugger/debugger_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698