Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2050)

Unified Diff: Source/devtools/protocol.json

Issue 1167693010: Add a DevTools Security domain to protocol.json. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add "unknown" as a security state, and reorder to match the SecurityStyle enum (also followed in SecurityStyleToProtocolSecurityState()). Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index f93ff09a0dc9845e0fc0337a3cbad082077bca15..8e8ce87ca68eae473f2d057ada4d00c44eaacaf2 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -1057,6 +1057,41 @@
]
},
{
+ "domain": "Security",
+ "description": "Security",
+ "hidden": true,
+ "types": [
+ {
+ "id": "SecurityState",
+ "type": "string",
+ "enum": ["unknown", "http", "insecure", "warning", "secure"],
lgarron 2015/06/09 20:18:27 Added "unknown", since the security handler can te
+ "description": "The security level of a page or resource."
+ }
+ ],
+ "commands": [
+ {
+ "name": "enable",
+ "description": "Enables tracking security state changes.",
+ "handlers": ["browser"]
+ },
+ {
+ "name": "disable",
+ "description": "Disables tracking security state changes.",
+ "handlers": ["browser"]
+ }
+ ],
+ "events": [
+ {
+ "name": "securityStateChanged",
+ "description": "The security state of the page changed.",
+ "parameters": [
+ { "name": "securityState", "$ref": "SecurityState", "description": "Security state." }
+ ],
+ "handlers": ["browser"]
+ }
+ ]
+ },
+ {
"domain": "Network",
"description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
"types": [
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698