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

Side by Side Diff: extensions/common/api/web_request.json

Issue 2156763003: Extend the webRequest.onCompleted event details object with TLS/SSL information Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Consistently use key constants for dict fields and simplify validation error reporting Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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
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 ", "TLS 1.3", "QUIC"]
158 },
159 {
160 "id": "ValidationErrors",
161 "type": "string",
162 "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"]
163 },
164 {
165 "id": "DistinguishedName",
166 "type": "object",
167 "properties": {
168 "commonName": {
169 "type": "string",
170 "optional": true,
171 "description": "Subject Common Name."
172 },
173 "localityName": {
174 "type": "string",
175 "optional": true,
176 "description": "Subject Locality Name."
177 },
178 "stateOrProvinceName": {
179 "type": "string",
180 "optional": true,
181 "description": "Subject State or Province Name."
182 },
183 "countryName": {
184 "type": "string",
185 "optional": true,
186 "description": "Subject Country Name."
187 },
188 "streetAddresses": {
189 "type": "array",
190 "items": { "type": "string" },
191 "optional": true,
192 "description": "Subject Street Addresses."
193 },
194 "organizationNames": {
195 "type": "array",
196 "items": { "type": "string" },
197 "optional": true,
198 "description": "Subject Organization Names."
199 },
200 "organizationUnitNames": {
201 "type": "array",
202 "items": { "type": "string" },
203 "optional": true,
204 "description": "Subject Organization Unit."
205 }
206 }
207 },
208 {
209 "id": "Certificate",
210 "type": "object",
211 "properties": {
212 "raw": {
213 "type": "binary",
214 "optional": true,
215 "description": "ArrayBuffer containing the DER encoded certificate."
216 },
217 "serialNumber": {
218 "type": "string",
219 "description": "The serial number of the certificate."
220 },
221 "subject": {
222 "$ref": "DistinguishedName",
223 "description": "The subject of the certificate."
224 },
225 "issuer": {
226 "$ref": "DistinguishedName",
227 "optional": true,
228 "description": "The subject of the issuer certificate."
229 },
230 "expired": {
231 "type": "boolean",
232 "description": "True if the certificate is expired."
233 },
234 "notBefore": {
235 "type": "number",
236 "description": "notBefore time of the certificate."
237 },
238 "notAfter": {
239 "type": "number",
240 "description": "notAfter time of the certificate."
241 },
242 "dnsNames": {
243 "type": "array",
244 "items": { "type": "string" },
245 "optional": true,
246 "description": "Array of DNS names contained in the certificate."
247 },
248 "ipAddresses": {
249 "type": "array",
250 "items": { "type": "string" },
251 "optional": true,
252 "description": "Array of IP Addresses contained in the certificate."
253 }
254 }
255 },
256 {
257 "id": "SSLInfo",
258 "type": "object",
259 "properties": {
260 "cipherSuite": {
261 "type": "string",
262 "description" :"Name of cipher suite used."
263 },
264 "sslVersion": {
265 "$ref": "SSLVersions",
266 "description": "The version of TLS used."
267 },
268 "sentChain": {
269 "type": "array",
270 "optional": true,
271 "description": "Array of Certificates that was sent by the server.",
272 "items": {
273 "$ref": "Certificate"
274 }
275 },
276 "builtChain": {
277 "type": "object",
278 "optional": true,
279 "description": "An object containing information about the certifica te chain that was built from the sent certificates.",
280 "properties": {
281 "valid": {
282 "type": "boolean",
283 "description": "True if built chain is valid."
284 },
285 "issuedByKnownRoot": {
286 "type": "boolean",
287 "description": "True if the leaf certificate issued by known roo t."
288 },
289 "extendedValidation": {
290 "type": "boolean",
291 "description": "True if the leaf certificate is EV."
292 },
293 "error": {
294 "$ref": "ValidationErrors",
295 "description": "Validation error for the certificate chain.",
296 "optional": true
297 },
298 "chain": {
299 "type": "array",
300 "description": "Array of Certificates built from the sent chain. ",
301 "items": {
302 "$ref": "Certificate"
303 }
304 }
305 }
306 }
307 }
153 } 308 }
154 ], 309 ],
155 "functions": [ 310 "functions": [
156 { 311 {
157 "name": "handlerBehaviorChanged", 312 "name": "handlerBehaviorChanged",
158 "type": "function", 313 "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.", 314 "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": [ 315 "parameters": [
161 {"type": "function", "name": "callback", "optional": true, "parameters ": []} 316 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
162 ] 317 ]
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 "method": {"type": "string", "description": "Standard HTTP method. "}, 673 "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."}, 674 "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. "}, 675 "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." }, 676 "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."}, 677 "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."}, 678 "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."}, 679 "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."}, 680 "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."}, 681 "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 ."}, 682 "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."} 683 "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."},
684 "sslInfo": {"$ref": "SSLInfo", "optional": true, "description": "O ptional information about the underlying SSL/TLS transport, if one was used."}
529 } 685 }
530 } 686 }
531 ], 687 ],
532 "extraParameters": [ 688 "extraParameters": [
533 { 689 {
534 "$ref": "RequestFilter", 690 "$ref": "RequestFilter",
535 "name": "filter", 691 "name": "filter",
536 "description": "A set of filters that restricts the events that will be sent to this listener." 692 "description": "A set of filters that restricts the events that will be sent to this listener."
537 }, 693 },
538 { 694 {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 { 729 {
574 "$ref": "RequestFilter", 730 "$ref": "RequestFilter",
575 "name": "filter", 731 "name": "filter",
576 "description": "A set of filters that restricts the events that will be sent to this listener." 732 "description": "A set of filters that restricts the events that will be sent to this listener."
577 } 733 }
578 ] 734 ]
579 } 735 }
580 ] 736 ]
581 } 737 }
582 ] 738 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698