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

Unified Diff: chrome/common/extensions/api/declarative_web_request.json

Issue 10874029: Adding condition attributes for response headers to Declarative WebRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some typos corrected Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698