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

Unified Diff: content/public/browser/devtools_manager_delegate.h

Issue 2708563002: DevTools: allow embedder handling async remote debugger commands. (Closed)
Patch Set: extract variable Created 3 years, 10 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 | « content/browser/devtools/protocol_config.json ('k') | content/public/browser/devtools_manager_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/devtools_manager_delegate.h
diff --git a/content/public/browser/devtools_manager_delegate.h b/content/public/browser/devtools_manager_delegate.h
index ae1e2efe7f422acc5e786e556940bb58562751ca..69d2b06be4d429aa90838f6bb210452c54c1ab48 100644
--- a/content/public/browser/devtools_manager_delegate.h
+++ b/content/public/browser/devtools_manager_delegate.h
@@ -5,7 +5,9 @@
#ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
+#include <memory>
#include <string>
+
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "content/public/browser/devtools_agent_host.h"
@@ -47,6 +49,11 @@ class CONTENT_EXPORT DevToolsManagerDelegate {
DevToolsAgentHost* agent_host,
base::DictionaryValue* command);
+ using CommandCallback =
+ base::Callback<void(std::unique_ptr<base::DictionaryValue> response)>;
+ virtual bool HandleAsyncCommand(DevToolsAgentHost* agent_host,
+ base::DictionaryValue* command,
+ CommandCallback callback);
// Should return discovery page HTML that should list available tabs
// and provide attach links.
virtual std::string GetDiscoveryPageHTML();
« no previous file with comments | « content/browser/devtools/protocol_config.json ('k') | content/public/browser/devtools_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698