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

Unified Diff: chrome/browser/extensions/api/debugger/debugger_api.h

Issue 13517002: Support shared workers as debug targets for chrome.debugger API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved flaky tests to a separate patch Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/debugger/debugger_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/debugger/debugger_api.h
diff --git a/chrome/browser/extensions/api/debugger/debugger_api.h b/chrome/browser/extensions/api/debugger/debugger_api.h
index d56bb15a5ad8b2c99d66262e39a868913884f6d3..2704352f23a0bfb76d3bd089494b904dfd0edf3b 100644
--- a/chrome/browser/extensions/api/debugger/debugger_api.h
+++ b/chrome/browser/extensions/api/debugger/debugger_api.h
@@ -24,22 +24,22 @@ class DictionaryValue;
}
namespace content {
-class DevToolsClientHost;
+class DevToolsAgentHost;
class WebContents;
}
class DebuggerFunction : public AsyncExtensionFunction {
protected:
DebuggerFunction();
- virtual ~DebuggerFunction() {}
+ virtual ~DebuggerFunction();
void FormatErrorMessage(const std::string& format);
- bool InitWebContents();
+ bool InitAgentHost();
bool InitClientHost();
- content::WebContents* contents_;
Debuggee debuggee_;
+ scoped_refptr<content::DevToolsAgentHost> agent_host_;
ExtensionDevToolsClientHost* client_host_;
};
@@ -98,6 +98,11 @@ class DebuggerGetTargetsFunction : public DebuggerFunction {
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
+
+ private:
+ void CollectWorkerInfo(base::ListValue* list);
+
+ void SendTargetList(base::ListValue* list);
};
#endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_
« 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