Chromium Code Reviews| 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": { |
| 11 "value": 20, | 11 "value": 20, |
| 12 "description": "The maximum number of times that <code>handlerBehaviorCh anged</code> can be called per 10 minute sustained interval. <code>handlerBehavi orChanged</code> is an expensive function call that shouldn't be called often." | 12 "description": "The maximum number of times that <code>handlerBehaviorCh anged</code> can be called per 10 minute sustained interval. <code>handlerBehavi orChanged</code> is an expensive function call that shouldn't be called often." |
| 13 } | 13 } |
| 14 }, | 14 }, |
| 15 "types": [ | 15 "types": [ |
| 16 { | 16 { |
| 17 "id": "RequestFilter", | 17 "id": "RequestFilter", |
| 18 "type": "object", | 18 "type": "object", |
| 19 "description": "An object describing filters to apply to webRequest even ts.", | 19 "description": "An object describing filters to apply to webRequest even ts.", |
| 20 "properties": { | 20 "properties": { |
|
Fady Samuel
2014/09/18 16:34:44
Replace this block with:
"additionalProperties":
| |
| 21 "urls": { | 21 "urls": { |
| 22 "type": "array", | 22 "type": "array", |
| 23 "description": "A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out.", | 23 "description": "A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out.", |
| 24 "items": { "type": "string" } | 24 "items": { "type": "string" } |
| 25 }, | 25 }, |
| 26 "types": { | 26 "types": { |
| 27 "type": "array", | 27 "type": "array", |
| 28 "optional": true, | 28 "optional": true, |
| 29 "description": "A list of request types. Requests that cannot match any of the types will be filtered out.", | 29 "description": "A list of request types. Requests that cannot match any of the types will be filtered out.", |
| 30 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"] } | 30 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"] } |
| 31 }, | 31 }, |
| 32 "tabId": { "type": "integer", "optional": true }, | 32 "extraRequestParams": { |
| 33 "windowId": { "type": "integer", "optional": true } | 33 "type": "object", |
| 34 "optional": true, | |
| 35 "description": "A data structure that contains extra request paramet ers, such as tabID and windowID.", | |
| 36 "properties": { | |
| 37 "tabId": {"type": "integer", "optional": true}, | |
| 38 "windowId": {"type": "integer", "optional": true} | |
| 39 } | |
| 40 } | |
| 34 } | 41 } |
| 35 }, | 42 }, |
| 36 { | 43 { |
| 37 "id": "HttpHeaders", | 44 "id": "HttpHeaders", |
| 38 "nocompile": true, | 45 "nocompile": true, |
| 39 "type": "array", | 46 "type": "array", |
| 40 "description": "An array of HTTP headers. Each header is represented as a dictionary containing the keys <code>name</code> and either <code>value</code> or <code>binaryValue</code>.", | 47 "description": "An array of HTTP headers. Each header is represented as a dictionary containing the keys <code>name</code> and either <code>value</code> or <code>binaryValue</code>.", |
| 41 "items": { | 48 "items": { |
| 42 "type": "object", | 49 "type": "object", |
| 43 "properties": { | 50 "properties": { |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 534 { | 541 { |
| 535 "$ref": "RequestFilter", | 542 "$ref": "RequestFilter", |
| 536 "name": "filter", | 543 "name": "filter", |
| 537 "description": "A set of filters that restricts the events that will be sent to this listener." | 544 "description": "A set of filters that restricts the events that will be sent to this listener." |
| 538 } | 545 } |
| 539 ] | 546 ] |
| 540 } | 547 } |
| 541 ] | 548 ] |
| 542 } | 549 } |
| 543 ] | 550 ] |
| OLD | NEW |