HandleCommand now takes session_id and returns success boolean. It is assumed a nullptr from the handler means failure
This commit is contained in:
parent
ed992ae6a1
commit
461e33104e
2 changed files with 8 additions and 3 deletions
|
@ -103,10 +103,14 @@ DevToolsManagerDelegate::~DevToolsManagerDelegate() {
|
|||
void DevToolsManagerDelegate::Inspect(content::DevToolsAgentHost* agent_host) {
|
||||
}
|
||||
|
||||
base::DictionaryValue* DevToolsManagerDelegate::HandleCommand(
|
||||
bool DevToolsManagerDelegate::HandleCommand(
|
||||
content::DevToolsAgentHost* agent_host,
|
||||
int session_id,
|
||||
base::DictionaryValue* command) {
|
||||
return handler_->HandleCommand(agent_host, command);
|
||||
if (handler_->HandleCommand(agent_host, command)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
scoped_refptr<content::DevToolsAgentHost>
|
||||
|
|
|
@ -24,8 +24,9 @@ class DevToolsManagerDelegate : public content::DevToolsManagerDelegate {
|
|||
|
||||
// DevToolsManagerDelegate implementation.
|
||||
void Inspect(content::DevToolsAgentHost* agent_host) override;
|
||||
base::DictionaryValue* HandleCommand(
|
||||
bool HandleCommand(
|
||||
content::DevToolsAgentHost* agent_host,
|
||||
int session_id,
|
||||
base::DictionaryValue* command) override;
|
||||
scoped_refptr<content::DevToolsAgentHost> CreateNewTarget(
|
||||
const GURL& url) override;
|
||||
|
|
Loading…
Reference in a new issue