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

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

Issue 11038031: Adding condition attributes for request headers to Declarative WebRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased (only). Created 8 years, 2 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 b297523f0a79370947ecbd02183724b385c644c6..23bf186556144d28accebf105c1f380a897bcb42 100644
--- a/chrome/common/extensions/api/declarative_web_request.json
+++ b/chrome/common/extensions/api/declarative_web_request.json
@@ -10,7 +10,7 @@
{
"id": "HeaderFilter",
"type": "object",
- "description": "Filters request headers for various criteria.",
+ "description": "Filters request headers for various criteria. Multiple criteria are evaluated as a conjunction.",
"properties": {
"namePrefix": {
"description" : "Matches if the header name starts with the specified string.",
@@ -88,6 +88,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" }
},
+ "requestHeaders": {
+ "type": "array",
+ "optional": true,
+ "description": "Matches if some of the request headers is matched by one of the HeaderFilters.",
+ "items": { "$ref": "HeaderFilter" }
+ },
+ "excludeRequestHeaders": {
+ "type": "array",
+ "optional": true,
+ "description": "Matches if none of the request headers is matched by any of the HeaderFilters.",
+ "items": { "$ref": "HeaderFilter" }
+ },
"responseHeaders": {
"type": "array",
"optional": true,
@@ -97,7 +109,7 @@
"excludeResponseHeaders": {
"type": "array",
"optional": true,
- "description": "Matches if none of the response headers is matched by one of the HeaderFilters.",
+ "description": "Matches if none of the response headers is matched by any of the HeaderFilters.",
"items": { "$ref": "HeaderFilter" }
},
"thirdPartyForCookies": {

Powered by Google App Engine
This is Rietveld 408576698