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 a conjunction.", |
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 "thirdPartyForCookies": { | 115 "thirdPartyForCookies": { |
104 "type": "boolean", | 116 "type": "boolean", |
105 "optional": true, | 117 "optional": true, |
106 "description": "If set to true, matches requests that are subject to
third-party cookie policies. If set to false, matches all other requests." | 118 "description": "If set to true, matches requests that are subject to
third-party cookie policies. If set to false, matches all other requests." |
107 }, | 119 }, |
108 "instanceType": { | 120 "instanceType": { |
109 "type": "string", "enum": ["declarativeWebRequest.RequestMatcher"], | 121 "type": "string", "enum": ["declarativeWebRequest.RequestMatcher"], |
110 "nodoc": true | 122 "nodoc": true |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 "declarativeWebRequest.RemoveRequestHeader", | 527 "declarativeWebRequest.RemoveRequestHeader", |
516 "declarativeWebRequest.RemoveResponseHeader", | 528 "declarativeWebRequest.RemoveResponseHeader", |
517 "declarativeWebRequest.SetRequestHeader", | 529 "declarativeWebRequest.SetRequestHeader", |
518 "declarativeWebRequest.IgnoreRules" | 530 "declarativeWebRequest.IgnoreRules" |
519 ] | 531 ] |
520 } | 532 } |
521 } | 533 } |
522 ] | 534 ] |
523 } | 535 } |
524 ] | 536 ] |
OLD | NEW |