Respond for handling protocol commands async
https://chromium-review.googlesource.com/c/chromium/src/+/1139575
This commit is contained in:
parent
25d0a7b62a
commit
f464b8c4c5
2 changed files with 9 additions and 5 deletions
|
@ -93,11 +93,13 @@ DevToolsManagerDelegate::~DevToolsManagerDelegate() {}
|
||||||
|
|
||||||
void DevToolsManagerDelegate::Inspect(content::DevToolsAgentHost* agent_host) {}
|
void DevToolsManagerDelegate::Inspect(content::DevToolsAgentHost* agent_host) {}
|
||||||
|
|
||||||
bool DevToolsManagerDelegate::HandleCommand(
|
void DevToolsManagerDelegate::HandleCommand(
|
||||||
content::DevToolsAgentHost* agent_host,
|
content::DevToolsAgentHost* agent_host,
|
||||||
content::DevToolsAgentHostClient* client,
|
content::DevToolsAgentHostClient* client,
|
||||||
base::DictionaryValue* command) {
|
std::unique_ptr<base::DictionaryValue> command,
|
||||||
return false;
|
const std::string& message,
|
||||||
|
NotHandledCallback callback) {
|
||||||
|
std::move(callback).Run(std::move(command), message);
|
||||||
}
|
}
|
||||||
|
|
||||||
scoped_refptr<content::DevToolsAgentHost>
|
scoped_refptr<content::DevToolsAgentHost>
|
||||||
|
|
|
@ -22,9 +22,11 @@ class DevToolsManagerDelegate : public content::DevToolsManagerDelegate {
|
||||||
|
|
||||||
// DevToolsManagerDelegate implementation.
|
// DevToolsManagerDelegate implementation.
|
||||||
void Inspect(content::DevToolsAgentHost* agent_host) override;
|
void Inspect(content::DevToolsAgentHost* agent_host) override;
|
||||||
bool HandleCommand(content::DevToolsAgentHost* agent_host,
|
void HandleCommand(content::DevToolsAgentHost* agent_host,
|
||||||
content::DevToolsAgentHostClient* client,
|
content::DevToolsAgentHostClient* client,
|
||||||
base::DictionaryValue* command) override;
|
std::unique_ptr<base::DictionaryValue> command,
|
||||||
|
const std::string& message,
|
||||||
|
NotHandledCallback callback) override;
|
||||||
scoped_refptr<content::DevToolsAgentHost> CreateNewTarget(
|
scoped_refptr<content::DevToolsAgentHost> CreateNewTarget(
|
||||||
const GURL& url) override;
|
const GURL& url) override;
|
||||||
std::string GetDiscoveryPageHTML() override;
|
std::string GetDiscoveryPageHTML() override;
|
||||||
|
|
Loading…
Reference in a new issue