mirror of
https://github.com/electron/electron.git
synced 2026-01-27 16:28:23 -05:00
HandleCommand now takes session_id and returns success boolean. It is assumed a nullptr from the handler means failure
This commit is contained in:
committed by
Aleksei Kuzmin
parent
ed992ae6a1
commit
461e33104e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user