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

Side by Side 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: Removed 0-sized arrays. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 one of the HeaderFilters.",
battre 2012/10/05 12:50:03 nit: "by one of the" -> "by any of the"
vabr (Chromium) 2012/10/05 15:56:53 Done, also for excludeResponseHeaders.
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 one of the HeaderFilters.",
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698