Chromium Code Reviews| Index: content/browser/devtools/protocol/devtools_protocol_handler_generator.py |
| diff --git a/content/browser/devtools/protocol/devtools_protocol_handler_generator.py b/content/browser/devtools/protocol/devtools_protocol_handler_generator.py |
| index f08ea9e5f085868793be5f34989638ad94ebd11c..7b0f58c2d2f28f93b70058043efe25c6ff130423 100755 |
| --- a/content/browser/devtools/protocol/devtools_protocol_handler_generator.py |
| +++ b/content/browser/devtools/protocol/devtools_protocol_handler_generator.py |
| @@ -657,6 +657,24 @@ browser_commands_list = [ |
| "Network.setCookie", |
| "Network.canEmulateNetworkConditions", |
| "Network.emulateNetworkConditions"] |
| +async_commands_list = [ |
|
caseq
2016/11/05 01:32:25
let's move this out of the code into some config a
|
| + "Page.getResourceContent", |
| + "Page.searchInResource", |
| + "Page.captureScreenshot", |
| + "Network.getCookies", |
| + "Network.deleteCookie", |
| + "Network.setCookie", |
| + "IO.read", |
| + "Input.synthesizePinchGesture", |
| + "Input.synthesizeScrollGesture", |
| + "Input.synthesizeTapGesture", |
| + "Tracing.start", |
| + "Tracing.end", |
| + "Tracing.getCategories", |
| + "Tracing.requestMemoryDump", |
| + "SystemInfo.getInfo", |
| + "Tethering.bind", |
| + "Tethering.unbind"] |
| for json_domain in all_domains: |
| domain_map = {} |
| @@ -719,7 +737,7 @@ for json_domain in all_domains: |
| args.append( |
| tmpl_arg_req.substitute(param_map, param_pass=param_pass)) |
| - if json_command.get("async"): |
| + if full_command_name in async_commands_list: |
| domain_needs_client = True |
| json_returns = [] |
| if "returns" in json_command: |