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": "declarativeWebRequest", | 7 "namespace": "declarativeWebRequest", |
| 8 "documentation_permissions_required": ["declarative", "declarativeWebRequest "], | 8 "documentation_permissions_required": ["declarative", "declarativeWebRequest "], |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| 11 "id": "HeaderFilter", | 11 "id": "HeaderFilter", |
| 12 "type": "object", | 12 "type": "object", |
| 13 "description": "Filters request headers for various criteria.", | 13 "description": "Filters request headers for various criteria. Multiple c riteria are evaluated as conjunction.", |
|
battre
2012/10/15 07:12:21
nit: "as a conjunction"?
vabr (Chromium)
2012/10/15 11:59:10
Done.
| |
| 14 "properties": { | 14 "properties": { |
| 15 "namePrefix": { | 15 "namePrefix": { |
| 16 "description" : "Matches if the header name starts with the specifie d string.", | 16 "description" : "Matches if the header name starts with the specifie d string.", |
| 17 "type": "string", | 17 "type": "string", |
| 18 "optional": true | 18 "optional": true |
| 19 }, | 19 }, |
| 20 "nameSuffix": { | 20 "nameSuffix": { |
| 21 "type": "string", | 21 "type": "string", |
| 22 "optional": true, | 22 "optional": true, |
| 23 "description" : "Matches if the header name ends with the specified string." | 23 "description" : "Matches if the header name ends with the specified string." |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 "optional": true, | 81 "optional": true, |
| 82 "description": "Matches if the MIME media type of a response (from t he HTTP Content-Type header) is contained in the list.", | 82 "description": "Matches if the MIME media type of a response (from t he HTTP Content-Type header) is contained in the list.", |
| 83 "items": { "type": "string" } | 83 "items": { "type": "string" } |
| 84 }, | 84 }, |
| 85 "excludeContentType": { | 85 "excludeContentType": { |
| 86 "type": "array", | 86 "type": "array", |
| 87 "optional": true, | 87 "optional": true, |
| 88 "description": "Matches if the MIME media type of a response (from t he HTTP Content-Type header) is <em>not</em> contained in the list.", | 88 "description": "Matches if the MIME media type of a response (from t he HTTP Content-Type header) is <em>not</em> contained in the list.", |
| 89 "items": { "type": "string" } | 89 "items": { "type": "string" } |
| 90 }, | 90 }, |
| 91 "requestHeaders": { | |
| 92 "type": "array", | |
| 93 "optional": true, | |
| 94 "description": "Matches if some of the request headers is matched by one of the HeaderFilters.", | |
| 95 "items": { "$ref": "HeaderFilter" } | |
| 96 }, | |
| 97 "excludeRequestHeaders": { | |
| 98 "type": "array", | |
| 99 "optional": true, | |
| 100 "description": "Matches if none of the request headers is matched by any of the HeaderFilters.", | |
| 101 "items": { "$ref": "HeaderFilter" } | |
| 102 }, | |
| 91 "responseHeaders": { | 103 "responseHeaders": { |
| 92 "type": "array", | 104 "type": "array", |
| 93 "optional": true, | 105 "optional": true, |
| 94 "description": "Matches if some of the response headers is matched b y one of the HeaderFilters.", | 106 "description": "Matches if some of the response headers is matched b y one of the HeaderFilters.", |
| 95 "items": { "$ref": "HeaderFilter" } | 107 "items": { "$ref": "HeaderFilter" } |
| 96 }, | 108 }, |
| 97 "excludeResponseHeaders": { | 109 "excludeResponseHeaders": { |
| 98 "type": "array", | 110 "type": "array", |
| 99 "optional": true, | 111 "optional": true, |
| 100 "description": "Matches if none of the response headers is matched b y one of the HeaderFilters.", | 112 "description": "Matches if none of the response headers is matched b y any of the HeaderFilters.", |
| 101 "items": { "$ref": "HeaderFilter" } | 113 "items": { "$ref": "HeaderFilter" } |
| 102 }, | 114 }, |
| 103 "instanceType": { | 115 "instanceType": { |
| 104 "type": "string", "enum": ["declarativeWebRequest.RequestMatcher"], | 116 "type": "string", "enum": ["declarativeWebRequest.RequestMatcher"], |
| 105 "nodoc": true | 117 "nodoc": true |
| 106 } | 118 } |
| 107 } | 119 } |
| 108 }, | 120 }, |
| 109 { | 121 { |
| 110 "id": "CancelRequest", | 122 "id": "CancelRequest", |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 446 "declarativeWebRequest.RemoveRequestHeader", | 458 "declarativeWebRequest.RemoveRequestHeader", |
| 447 "declarativeWebRequest.RemoveResponseHeader", | 459 "declarativeWebRequest.RemoveResponseHeader", |
| 448 "declarativeWebRequest.SetRequestHeader", | 460 "declarativeWebRequest.SetRequestHeader", |
| 449 "declarativeWebRequest.IgnoreRules" | 461 "declarativeWebRequest.IgnoreRules" |
| 450 ] | 462 ] |
| 451 } | 463 } |
| 452 } | 464 } |
| 453 ] | 465 ] |
| 454 } | 466 } |
| 455 ] | 467 ] |
| OLD | NEW |