Chromium Code Reviews| Index: third_party/WebKit/Source/core/inspector/browser_protocol.json |
| diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| index 08acb7bd0cc6490b65856a9dc16f2585a5037d7b..fcd9712db9359ef501dd4196ab6f510c85bcb617 100644 |
| --- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| +++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| @@ -4372,6 +4372,15 @@ |
| { "name": "networkRequestId", "$ref": "Network.RequestId", "optional": true, "description": "Identifier of the network request associated with this entry." }, |
| { "name": "workerId", "type": "string", "optional": true, "description": "Identifier of the worker associated with this entry." } |
| ] |
| + }, |
| + { |
| + "id": "ViolationSetting", |
| + "type": "object", |
| + "description": "Violation configuration setting.", |
| + "properties": [ |
| + { "name": "name", "type": "string", "enum": ["longTask", "longLayout", "blockedEvent"], "description": "Entry name." }, |
|
caseq
2016/11/09 00:41:11
"description": "Type of violation."?
pfeldman
2016/11/09 01:39:14
Done.
|
| + { "name": "threshold", "type": "number", "description": "Time threshold to trigger upon." } |
| + ] |
| } |
| ], |
| "commands": [ |
| @@ -4388,11 +4397,15 @@ |
| "description": "Clears the log." |
| }, |
| { |
| - "name": "setReportViolationsEnabled", |
| + "name": "startViolationsReport", |
| "parameters": [ |
| - { "name": "enabled", "type": "boolean", "description": "Pass true to enable." } |
| + { "name": "config", "type": "array", "items": { "$ref": "ViolationSetting" }, "description": "Configuration for violations." } |
| ], |
| - "description": "Reports runtime audit violations as log entries." |
| + "description": "start violation reporting." |
|
caseq
2016/11/09 00:41:11
s/start/Start/
pfeldman
2016/11/09 01:39:14
Done.
|
| + }, |
| + { |
| + "name": "stopViolationsReport", |
| + "description": "Stop violation reporting." |
| } |
| ], |
| "events": [ |