Chromium Code Reviews| Index: chrome/common/extensions/api/declarative_web_request.json |
| diff --git a/chrome/common/extensions/api/declarative_web_request.json b/chrome/common/extensions/api/declarative_web_request.json |
| index 3a8f715f512a3589a1d14bf1dde4234453ca180c..24737ad8f7d55503b21e309822e84b9914cc33b0 100644 |
| --- a/chrome/common/extensions/api/declarative_web_request.json |
| +++ b/chrome/common/extensions/api/declarative_web_request.json |
| @@ -5,9 +5,80 @@ |
| [ |
| { |
| "namespace": "declarativeWebRequest", |
| - "documentation_permissions_required": ["declarative", "declarativeWebRequest"], |
| + "description_permissions_required": ["declarative", "declarativeWebRequest"], |
|
battre
2012/08/23 12:32:11
I think this change is wrong.
vabr (Chromium)
2012/08/24 14:48:59
Sorry, that was unintentional. Wrongly written sub
|
| "types": [ |
| { |
| + "id": "HeaderFilter", |
| + "type": "object", |
| + "description": "Filters request headers for various criteria.", |
| + "properties": { |
| + "namePrefix": { |
| + "description" : "Matches if the header name starts with a specified string.", |
|
battre
2012/08/23 12:32:11
This does not cover the array.
vabr (Chromium)
2012/08/24 14:48:59
I amended the comments, and also removed the choic
|
| + "choices": [ |
| + {"type": "array", "items": {"type": "string"}}, |
| + {"type": "string"} |
| + ], |
| + "optional": true |
| + }, |
| + "nameSuffix": { |
| + "choices": [ |
| + {"type": "array", "items": {"type": "string"}}, |
| + {"type": "string"} |
| + ], |
| + "optional": true, |
| + "description" : "Matches if the header name ends with a specified string." |
| + }, |
| + "nameContains": { |
| + "choices": [ |
| + {"type": "array", "items": {"type": "string"}}, |
| + {"type": "string"} |
| + ], |
| + "optional": true, |
| + "description" : "Matches if the header name contains a specified string." |
| + }, |
| + "nameEquals": { |
| + "choices": [ |
| + {"type": "array", "items": {"type": "string"}}, |
| + {"type": "string"} |
| + ], |
| + "optional": true, |
| + "description" : "Matches if the header name is equal to a specified string." |
| + }, |
| + "valuePrefix": { |
| + "choices": [ |
| + {"type": "array", "items": {"type": "string"}}, |
| + {"type": "string"} |
| + ], |
| + "optional": true, |
| + "description" : "Matches if the header value starts with a specified string." |
| + }, |
| + "valueSuffix": { |
| + "choices": [ |
| + {"type": "array", "items": {"type": "string"}}, |
| + {"type": "string"} |
| + ], |
| + "optional": true, |
| + "description" : "Matches if the header value ends with a specified string." |
| + }, |
| + "valueContains": { |
| + "choices": [ |
| + {"type": "array", "items": {"type": "string"}}, |
| + {"type": "string"} |
| + ], |
| + "optional": true, |
| + "description" : "Matches if the header value contains a specified string." |
| + }, |
| + "valueEquals": { |
| + "choices": [ |
| + {"type": "array", "items": {"type": "string"}}, |
| + {"type": "string"} |
| + ], |
| + "optional": true, |
| + "description" : "Matches if the header value is equal to a specified string." |
| + } |
| + } |
| + }, |
| + { |
| "id": "RequestMatcher", |
| "type": "object", |
| "description": "Matches network events by various criteria.", |
| @@ -35,6 +106,18 @@ |
| "description": "Matches if the MIME media type of a response (from the HTTP Content-Type header) is <em>not</em> contained in the list.", |
| "items": { "type": "string" } |
| }, |
| + "containsHeaders": { |
|
battre
2012/08/23 12:32:11
I would rename this to "responseHeaders"
vabr (Chromium)
2012/08/24 14:48:59
Done.
|
| + "type": "array", |
| + "optional": true, |
| + "description": "Matches if some of the headers is matched by one of the HeaderFilters.", |
|
battre
2012/08/23 12:32:11
response headers
vabr (Chromium)
2012/08/24 14:48:59
Done.
|
| + "items": { "$ref": "HeaderFilter" } |
| + }, |
| + "doesNotContainHeaders": { |
|
battre
2012/08/23 12:32:11
I would rename this to "excludeResponseHeaders"
vabr (Chromium)
2012/08/24 14:48:59
Done.
|
| + "type": "array", |
| + "optional": true, |
| + "description": "Matches if none of the headers is matched by one of the HeaderFilters.", |
|
battre
2012/08/23 12:32:11
response headers
vabr (Chromium)
2012/08/24 14:48:59
Done.
|
| + "items": { "$ref": "HeaderFilter" } |
| + }, |
| "instanceType": { |
| "type": "string", "enum": ["declarativeWebRequest.RequestMatcher"], |
| "nodoc": true |