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

Side by Side 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: Merged with ToT Created 8 years, 6 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 "type": "string", "enum": ["declarativeWebRequest.RemoveRequestHeade r"], 93 "type": "string", "enum": ["declarativeWebRequest.RemoveRequestHeade r"],
94 "nodoc": true 94 "nodoc": true
95 }, 95 },
96 "name": { 96 "name": {
97 "type": "string", 97 "type": "string",
98 "description": "HTTP request header name (case-insensitive)." 98 "description": "HTTP request header name (case-insensitive)."
99 } 99 }
100 } 100 }
101 }, 101 },
102 { 102 {
103 "id": "declarativeWebRequest.AddResponseHeader",
104 "description": "Adds the response header to the response of this web req uest. As multiple response headers may share the same name, you need to first re move and then add a new response header in order to replace one.",
105 "type": "object",
106 "properties": {
107 "instanceType": {
108 "type": "string", "enum": ["declarativeWebRequest.AddResponseHeader" ],
109 "nodoc": true
110 },
111 "name": {
112 "type": "string",
113 "description": "HTTP response header name."
114 },
115 "value": {
116 "type": "string",
117 "description": "HTTP response header value."
118 }
119 }
120 },
121 {
122 "id": "declarativeWebRequest.RemoveResponseHeader",
123 "description": "Removes all response headers of the specified names and values.",
124 "type": "object",
125 "properties": {
126 "instanceType": {
127 "type": "string", "enum": ["declarativeWebRequest.RemoveResponseHead er"],
128 "nodoc": true
129 },
130 "name": {
131 "type": "string",
132 "description": "HTTP request header name (case-insensitive)."
133 },
134 "value": {
135 "type": "string",
136 "description": "HTTP request header value (case-insensitive).",
137 "optional": true
138 }
139 }
140 },
141 {
103 "id": "declarativeWebRequest.IgnoreRules", 142 "id": "declarativeWebRequest.IgnoreRules",
104 "description": "Masks all rules that match the specified criteria.", 143 "description": "Masks all rules that match the specified criteria.",
105 "type": "object", 144 "type": "object",
106 "properties": { 145 "properties": {
107 "instanceType": { 146 "instanceType": {
108 "type": "string", "enum": ["declarativeWebRequest.IgnoreRules"], 147 "type": "string", "enum": ["declarativeWebRequest.IgnoreRules"],
109 "nodoc": true 148 "nodoc": true
110 }, 149 },
111 "lowerPriorityThan": { 150 "lowerPriorityThan": {
112 "type": "integer", 151 "type": "integer",
113 "description": "If set, rules with a lower priority than the specifi ed value are ignored. This boundary is not persited, it affects only rules and t heir actions of the same network request stage. TODO(battre): Explain network re quest stages." 152 "description": "If set, rules with a lower priority than the specifi ed value are ignored. This boundary is not persited, it affects only rules and t heir actions of the same network request stage. TODO(battre): Explain network re quest stages."
114 } 153 }
115 } 154 }
116 } 155 }
117 ], 156 ],
118 "functions": [ 157 "functions": [
119 ], 158 ],
120 "events": [ 159 "events": [
121 { 160 {
122 "name": "onRequest", 161 "name": "onRequest",
123 "options": { 162 "options": {
124 "supportsListeners": false, 163 "supportsListeners": false,
125 "supportsRules": true, 164 "supportsRules": true,
126 "conditions": ["declarativeWebRequest.RequestMatcher"], 165 "conditions": ["declarativeWebRequest.RequestMatcher"],
127 "actions": [ 166 "actions": [
167 "declarativeWebRequest.AddResponseHeader",
128 "declarativeWebRequest.CancelRequest", 168 "declarativeWebRequest.CancelRequest",
129 "declarativeWebRequest.RedirectRequest", 169 "declarativeWebRequest.RedirectRequest",
130 "declarativeWebRequest.RedirectToTransparentImage", 170 "declarativeWebRequest.RedirectToTransparentImage",
131 "declarativeWebRequest.RedirectToEmptyDocument", 171 "declarativeWebRequest.RedirectToEmptyDocument",
132 "declarativeWebRequest.SetRequestHeader", 172 "declarativeWebRequest.SetRequestHeader",
133 "declarativeWebRequest.RemoveRequestHeader", 173 "declarativeWebRequest.RemoveRequestHeader",
174 "declarativeWebRequest.RemoveResponseHeader",
134 "declarativeWebRequest.IgnoreRules" 175 "declarativeWebRequest.IgnoreRules"
135 ] 176 ]
136 } 177 }
137 } 178 }
138 ] 179 ]
139 } 180 }
140 ] 181 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/web_request/web_request_api.cc ('k') | chrome/common/extensions/docs/declarativeWebRequest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698