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

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

Issue 10947037: DevTools: provide the debugger detach reason in chrome.debugger.onDetach extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer comments addressed. Created 8 years, 3 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 | « chrome/browser/debugger/devtools_window.cc ('k') | 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 b7f332791f51d79ddadc2a31f9593d49399ece9f..603b02b5176175fd25264c267e0cffce0ca09096 100644
--- a/chrome/browser/extensions/api/debugger/debugger_api.h
+++ b/chrome/browser/extensions/api/debugger/debugger_api.h
@@ -21,6 +21,7 @@ class DictionaryValue;
}
namespace content {
+class DevToolsClientHost;
class WebContents;
}
@@ -80,4 +81,12 @@ class SendCommandDebuggerFunction : public DebuggerFunction {
virtual bool RunImpl() OVERRIDE;
};
+class DebuggerApi {
+ public:
+ // Marks ExtensionDevToolsClientHost as replaced with the bundled devtools
+ // so that we could report proper disconnect reason.
+ static void MarkDevToolsClientHostAsReplaced(
+ content::DevToolsClientHost* client_host);
+};
+
#endif // CHROME_BROWSER_EXTENSIONS_API_DEBUGGER_DEBUGGER_API_H_
« no previous file with comments | « chrome/browser/debugger/devtools_window.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