OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "webRequest", | 7 "namespace": "webRequest", |
8 "description": "Use the <code>chrome.webRequest</code> API to observe and an
alyze traffic and to intercept, block, or modify requests in-flight.", | 8 "description": "Use the <code>chrome.webRequest</code> API to observe and an
alyze traffic and to intercept, block, or modify requests in-flight.", |
9 "properties": { | 9 "properties": { |
10 "MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES": { | 10 "MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES": { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 "optional": true, | 143 "optional": true, |
144 "description": "An ArrayBuffer with a copy of the data." | 144 "description": "An ArrayBuffer with a copy of the data." |
145 }, | 145 }, |
146 "file": { | 146 "file": { |
147 "type": "string", | 147 "type": "string", |
148 "optional": true, | 148 "optional": true, |
149 "description": "A string with the file's path and name." | 149 "description": "A string with the file's path and name." |
150 } | 150 } |
151 }, | 151 }, |
152 "description": "Contains data uploaded in a URL request." | 152 "description": "Contains data uploaded in a URL request." |
| 153 }, |
| 154 { |
| 155 "id": "SSLVersions", |
| 156 "type": "string", |
| 157 "enum": ["UNKNOWN", "SSL 2.0", "SSL 3.0", "TLS 1.0", "TLS 1.1", "TLS 1.2
", "QUIC"] |
| 158 }, |
| 159 { |
| 160 "id": "CipherNames", |
| 161 "type": "string", |
| 162 "enum": ["UNKNOWN", "NULL", "RC4_40", "RC4_128", "RC2_CBC_40", "IDEA_CBC
", "DES40_CBC", "DES_CBC", "3DES_EDE_CBC", "AES_128_CBC", "AES_256_CBC", "CAMELL
IA_128_CBC", "CAMELLIA_256_CBC", "SEED_CBC", "AES_128_GCM", "AES_256_GCM", "CAME
LLIA_128_GCM", "CAMELLIA_256_GCM", "CHACHA20_POLY1305"] |
| 163 }, |
| 164 { |
| 165 "id": "KeyExchangeNames", |
| 166 "type": "string", |
| 167 "enum": ["UNKNOWN", "NULL", "RSA", "RSA_EXPORT", "DH_DSS_EXPORT", "DH_DS
S", "DH_RSA_EXPORT", "DH_RSA", "DHE_DSS_EXPORT", "DHE_DSS", "DHE_RSA_EXPORT", "D
HE_RSA", "DH_anon_EXPORT", "DH_anon", "ECDH_ECDSA", "ECDHE_ECDSA", "ECDH_RSA", "
ECDHE_RSA", "ECDH_anon"] |
| 168 }, |
| 169 { |
| 170 "id": "MACNames", |
| 171 "type": "string", |
| 172 "enum": ["UNKNOWN", "NULL", "HMAC-MD5", "HMAC-SHA1", "HMAC-SHA256", "HMA
C-SHA384"] |
| 173 }, |
| 174 { |
| 175 "id": "ValidationErrors", |
| 176 "type": "string", |
| 177 "enum": ["ERR_CERT_REVOKED", "ERR_CERT_INVALID", "ERR_SSL_PINNED_KEY_NOT
_IN_CERT_CHAIN", "ERR_CERT_AUTHORITY_INVALID", "ERR_CERT_COMMON_NAME_INVALID", "
ERR_CERT_NAME_CONSTRAINT_VIOLATION", "ERR_CERT_WEAK_SIGNATURE_ALGORITHM", "ERR_C
ERT_WEAK_KEY", "ERR_CERT_DATE_INVALID", "ERR_CERT_VALIDITY_TOO_LONG", "ERR_CERT_
UNABLE_TO_CHECK_REVOCATION", "ERR_CERT_NO_REVOCATION_MECHANISM"] |
| 178 }, |
| 179 { |
| 180 "id": "DistinguishedName", |
| 181 "type": "object", |
| 182 "properties": { |
| 183 "commonName": { |
| 184 "type": "string", |
| 185 "optional": true, |
| 186 "description": "Subject Common Name." |
| 187 }, |
| 188 "localityName": { |
| 189 "type": "string", |
| 190 "optional": true, |
| 191 "description": "Subject Locality Name." |
| 192 }, |
| 193 "stateOrProvinceName": { |
| 194 "type": "string", |
| 195 "optional": true, |
| 196 "description": "Subject State or Province Name." |
| 197 }, |
| 198 "countryName": { |
| 199 "type": "string", |
| 200 "optional": true, |
| 201 "description": "Subject Country Name." |
| 202 }, |
| 203 "streetAddresses": { |
| 204 "type": "array", |
| 205 "items": { "type": "string" }, |
| 206 "optional": true, |
| 207 "description": "Subject Street Addresses." |
| 208 }, |
| 209 "organizationNames": { |
| 210 "type": "array", |
| 211 "items": { "type": "string" }, |
| 212 "optional": true, |
| 213 "description": "Subject Organization Names." |
| 214 }, |
| 215 "organizationUnitNames": { |
| 216 "type": "array", |
| 217 "items": { "type": "string" }, |
| 218 "optional": true, |
| 219 "description": "Subject Organization Unit." |
| 220 }, |
| 221 "domainComponents": { |
| 222 "type": "array", |
| 223 "items": { "type": "string" }, |
| 224 "optional": true, |
| 225 "description": "Additional domain components." |
| 226 } |
| 227 } |
| 228 }, |
| 229 { |
| 230 "id": "Certificate", |
| 231 "type": "object", |
| 232 "properties": { |
| 233 "raw": { |
| 234 "type": "binary", |
| 235 "optional": true, |
| 236 "description": "ArrayBuffer containing the DER encoded certificate." |
| 237 }, |
| 238 "serialNumber": { |
| 239 "type": "string", |
| 240 "description": "The serial number of the certificate." |
| 241 }, |
| 242 "subject": { |
| 243 "$ref": "DistinguishedName", |
| 244 "description": "The subject of the certificate" |
| 245 }, |
| 246 "issuer": { |
| 247 "$ref": "DistinguishedName", |
| 248 "optional": true, |
| 249 "description": "The issuer subject of the certificate" |
| 250 }, |
| 251 "expired": { |
| 252 "type": "boolean", |
| 253 "description": "True if the certificate is expired." |
| 254 }, |
| 255 "notBefore": { |
| 256 "type": "number", |
| 257 "description": "notBefore time of the certificate" |
| 258 }, |
| 259 "notAfter": { |
| 260 "type": "number", |
| 261 "description": "notAfter time of the certificate" |
| 262 }, |
| 263 "DNSNames": { |
| 264 "type": "array", |
| 265 "items": { "type": "string" }, |
| 266 "optional": true, |
| 267 "description": "Array of DNS names contained in the certificate." |
| 268 }, |
| 269 "IPAddresses": { |
| 270 "type": "array", |
| 271 "items": { "type": "string" }, |
| 272 "optional": true, |
| 273 "description": "Array of IP Addresses contained in the certificate." |
| 274 } |
| 275 } |
| 276 }, |
| 277 { |
| 278 "id": "ConnectionInfo", |
| 279 "type": "object", |
| 280 "properties": { |
| 281 "cipherSuiteStrength": { |
| 282 "type": "integer", |
| 283 "description": "Strength, in bits, of the cipher suite used." |
| 284 }, |
| 285 "clientCertificateSent": { |
| 286 "type": "boolean", |
| 287 "description": "True if a client certificate was sent to the server.
" |
| 288 }, |
| 289 "channelIDSent": { |
| 290 "type": "boolean", |
| 291 "description": "True if a channel ID was sent to the server." |
| 292 }, |
| 293 "tokenBindingNegotiated": { |
| 294 "type": "boolean", |
| 295 "description": "True if Token Binding was negotiated with the serve
r and verion and key params were agreed on." |
| 296 }, |
| 297 "cipherName": { |
| 298 "$ref": "CipherNames", |
| 299 "description" :"Name of cipher used" |
| 300 }, |
| 301 "keyExchangeName": { |
| 302 "$ref": "KeyExchangeNames", |
| 303 "description" :"Name of key exchange technique used." |
| 304 }, |
| 305 "macName": { |
| 306 "$ref": "MACNames", |
| 307 "optional": true, |
| 308 "description" :"Name of MAC used." |
| 309 }, |
| 310 "aeadSuite": { |
| 311 "type": "boolean", |
| 312 "optional": true, |
| 313 "description": "True if the cipher suite is AEAD." |
| 314 }, |
| 315 "deflateCompression": { |
| 316 "type": "boolean", |
| 317 "optional": true, |
| 318 "description": "True if deflate compression was used." |
| 319 }, |
| 320 "sslVersion": { |
| 321 "$ref": "SSLVersions", |
| 322 "description": "The version of TLS used" |
| 323 }, |
| 324 "versionFallback": { |
| 325 "type": "boolean", |
| 326 "optional": true, |
| 327 "description": "True if TLS fallback occurred." |
| 328 }, |
| 329 "noRenegotiationExtension": { |
| 330 "type": "boolean", |
| 331 "optional": true, |
| 332 "description": "True if the no renegotiation extension was sent." |
| 333 } |
| 334 } |
| 335 }, |
| 336 { |
| 337 "id": "SSLInfo", |
| 338 "type": "object", |
| 339 "properties": { |
| 340 "connectionInfo": { |
| 341 "$ref": "ConnectionInfo", |
| 342 "description": "Information about the ciphers and protocols used to
establish the underlying connection." |
| 343 }, |
| 344 "sentChain": { |
| 345 "type": "array", |
| 346 "optional": true, |
| 347 "description": "Array of Certificates that was sent by the server.", |
| 348 "items": { |
| 349 "$ref": "Certificate" |
| 350 } |
| 351 }, |
| 352 "builtChain": { |
| 353 "type": "object", |
| 354 "optional": true, |
| 355 "description": "An object containing information about the certifica
te chain that was built from the sent certificates.", |
| 356 "properties": { |
| 357 "valid": { |
| 358 "type": "boolean", |
| 359 "description": "True if built chain is valid." |
| 360 }, |
| 361 "issuedByKnownRoot": { |
| 362 "type": "boolean", |
| 363 "description": "True if the leaf certificate issued by known roo
t." |
| 364 }, |
| 365 "extendedValidation": { |
| 366 "type": "boolean", |
| 367 "description": "True if the leaf certificate is EV." |
| 368 }, |
| 369 "revocationCheckingEnabled": { |
| 370 "type": "boolean", |
| 371 "description": "True if reovcation checking for certificates in
the chain is enabled." |
| 372 }, |
| 373 "errors": { |
| 374 "type": "array", |
| 375 "description": "List of validation errors.", |
| 376 "optional": true, |
| 377 "items": { |
| 378 "$ref": "ValidationErrors" |
| 379 } |
| 380 }, |
| 381 "nonUniqueName": { |
| 382 "type": "boolean", |
| 383 "optional": true, |
| 384 "description": "True if a certificate in the chain contains non
unique names." |
| 385 }, |
| 386 "sha1SignaturePresent": { |
| 387 "type": "boolean", |
| 388 "optional": true, |
| 389 "description": "True if a certificate in the chain uses a SHA1 s
ignature." |
| 390 }, |
| 391 "ctComplianceFailed": { |
| 392 "type": "boolean", |
| 393 "optional": true, |
| 394 "description": "True if a certificate in the chain fails CT comp
liance checks." |
| 395 }, |
| 396 "chain": { |
| 397 "type": "array", |
| 398 "description": "Array of Certificates built from the sent chain.
", |
| 399 "items": { |
| 400 "$ref": "Certificate" |
| 401 } |
| 402 } |
| 403 } |
| 404 } |
| 405 } |
153 } | 406 } |
154 ], | 407 ], |
155 "functions": [ | 408 "functions": [ |
156 { | 409 { |
157 "name": "handlerBehaviorChanged", | 410 "name": "handlerBehaviorChanged", |
158 "type": "function", | 411 "type": "function", |
159 "description": "Needs to be called when the behavior of the webRequest h
andlers has changed to prevent incorrect handling due to caching. This function
call is expensive. Don't call it often.", | 412 "description": "Needs to be called when the behavior of the webRequest h
andlers has changed to prevent incorrect handling due to caching. This function
call is expensive. Don't call it often.", |
160 "parameters": [ | 413 "parameters": [ |
161 {"type": "function", "name": "callback", "optional": true, "parameters
": []} | 414 {"type": "function", "name": "callback", "optional": true, "parameters
": []} |
162 ] | 415 ] |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 "method": {"type": "string", "description": "Standard HTTP method.
"}, | 771 "method": {"type": "string", "description": "Standard HTTP method.
"}, |
519 "frameId": {"type": "integer", "description": "The value 0 indicat
es that the request happens in the main frame; a positive value indicates the ID
of a subframe in which the request happens. If the document of a (sub-)frame is
loaded (<code>type</code> is <code>main_frame</code> or <code>sub_frame</code>)
, <code>frameId</code> indicates the ID of this frame, not the ID of the outer f
rame. Frame IDs are unique within a tab."}, | 772 "frameId": {"type": "integer", "description": "The value 0 indicat
es that the request happens in the main frame; a positive value indicates the ID
of a subframe in which the request happens. If the document of a (sub-)frame is
loaded (<code>type</code> is <code>main_frame</code> or <code>sub_frame</code>)
, <code>frameId</code> indicates the ID of this frame, not the ID of the outer f
rame. Frame IDs are unique within a tab."}, |
520 "parentFrameId": {"type": "integer", "description": "ID of frame t
hat wraps the frame which sent the request. Set to -1 if no parent frame exists.
"}, | 773 "parentFrameId": {"type": "integer", "description": "ID of frame t
hat wraps the frame which sent the request. Set to -1 if no parent frame exists.
"}, |
521 "tabId": {"type": "integer", "description": "The ID of the tab in
which the request takes place. Set to -1 if the request isn't related to a tab."
}, | 774 "tabId": {"type": "integer", "description": "The ID of the tab in
which the request takes place. Set to -1 if the request isn't related to a tab."
}, |
522 "type": {"$ref": "ResourceType", "description": "How the requested
resource will be used."}, | 775 "type": {"$ref": "ResourceType", "description": "How the requested
resource will be used."}, |
523 "timeStamp": {"type": "number", "description": "The time when this
signal is triggered, in milliseconds since the epoch."}, | 776 "timeStamp": {"type": "number", "description": "The time when this
signal is triggered, in milliseconds since the epoch."}, |
524 "ip": {"type": "string", "optional": true, "description": "The ser
ver IP address that the request was actually sent to. Note that it may be a lite
ral IPv6 address."}, | 777 "ip": {"type": "string", "optional": true, "description": "The ser
ver IP address that the request was actually sent to. Note that it may be a lite
ral IPv6 address."}, |
525 "fromCache": {"type": "boolean", "description": "Indicates if this
response was fetched from disk cache."}, | 778 "fromCache": {"type": "boolean", "description": "Indicates if this
response was fetched from disk cache."}, |
526 "statusCode": {"type": "integer", "description": "Standard HTTP st
atus code returned by the server."}, | 779 "statusCode": {"type": "integer", "description": "Standard HTTP st
atus code returned by the server."}, |
527 "responseHeaders": {"$ref": "HttpHeaders", "optional": true, "desc
ription": "The HTTP response headers that were received along with this response
."}, | 780 "responseHeaders": {"$ref": "HttpHeaders", "optional": true, "desc
ription": "The HTTP response headers that were received along with this response
."}, |
528 "statusLine": {"type": "string", "description": "HTTP status line
of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., re
sponses that lack a status line) or an empty string if there are no headers."} | 781 "statusLine": {"type": "string", "description": "HTTP status line
of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., re
sponses that lack a status line) or an empty string if there are no headers."}, |
| 782 "sslInfo": {"$ref": "SSLInfo", "optional": true, "description": "O
ptional information about the underlying SSL/TLS transport, if one was used."} |
529 } | 783 } |
530 } | 784 } |
531 ], | 785 ], |
532 "extraParameters": [ | 786 "extraParameters": [ |
533 { | 787 { |
534 "$ref": "RequestFilter", | 788 "$ref": "RequestFilter", |
535 "name": "filter", | 789 "name": "filter", |
536 "description": "A set of filters that restricts the events that will
be sent to this listener." | 790 "description": "A set of filters that restricts the events that will
be sent to this listener." |
537 }, | 791 }, |
538 { | 792 { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 { | 827 { |
574 "$ref": "RequestFilter", | 828 "$ref": "RequestFilter", |
575 "name": "filter", | 829 "name": "filter", |
576 "description": "A set of filters that restricts the events that will
be sent to this listener." | 830 "description": "A set of filters that restricts the events that will
be sent to this listener." |
577 } | 831 } |
578 ] | 832 ] |
579 } | 833 } |
580 ] | 834 ] |
581 } | 835 } |
582 ] | 836 ] |
OLD | NEW |