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

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

Issue 10451071: Add support for response header manipulation in Declarative WebRequest API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made header value comparison case-insensitive Created 8 years, 7 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 3e445d21adb74f7c4bfc9eee5b23eeaed1f2e4d8..2618929e6e8a8c50cef04afc50da325ff2b40444 100644
--- a/chrome/common/extensions/api/declarative_web_request.json
+++ b/chrome/common/extensions/api/declarative_web_request.json
@@ -100,6 +100,45 @@
}
},
{
+ "id": "declarativeWebRequest.AddResponseHeader",
+ "description": "Adds the response header to the response of this web request. As multiple response headers may share the same name, you need to first remove and then add a new response header in order to replace a one.",
Matt Perry 2012/05/29 21:24:27 "a one" => "one"
battre 2012/05/30 07:35:06 Done.
+ "type": "object",
+ "properties": {
+ "instanceType": {
+ "type": "string", "enum": ["declarativeWebRequest.AddResponseHeader"],
+ "nodoc": true
+ },
+ "name": {
+ "type": "string",
+ "description": "HTTP response header name."
+ },
+ "value": {
+ "type": "string",
+ "description": "HTTP response header value."
+ }
+ }
+ },
+ {
+ "id": "declarativeWebRequest.RemoveResponseHeader",
+ "description": "Removes all response headers of the specified names and values.",
+ "type": "object",
+ "properties": {
+ "instanceType": {
+ "type": "string", "enum": ["declarativeWebRequest.RemoveResponseHeader"],
+ "nodoc": true
+ },
+ "name": {
+ "type": "string",
+ "description": "HTTP request header name (case-insensitive)."
+ },
+ "value": {
+ "type": "string",
+ "description": "HTTP request header value (case-insensitive).",
+ "optional": true
+ }
+ }
+ },
+ {
"id": "declarativeWebRequest.IgnoreRules",
"description": "Masks all rules that match the specified criteria.",
"type": "object",
@@ -125,12 +164,14 @@
"supportsRules": true,
"conditions": ["declarativeWebRequest.RequestMatcher"],
"actions": [
+ "declarativeWebRequest.AddResponseHeader",
"declarativeWebRequest.CancelRequest",
"declarativeWebRequest.RedirectRequest",
"declarativeWebRequest.RedirectToTransparentImage",
"declarativeWebRequest.RedirectToEmptyDocument",
"declarativeWebRequest.SetRequestHeader",
"declarativeWebRequest.RemoveRequestHeader",
+ "declarativeWebRequest.RemoveResponseHeader",
"declarativeWebRequest.IgnoreRules"
]
}

Powered by Google App Engine
This is Rietveld 408576698