OLD | NEW |
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 "description": "Declarative event action that redirects a network reques
t to an empty document.", | 59 "description": "Declarative event action that redirects a network reques
t to an empty document.", |
60 "type": "object", | 60 "type": "object", |
61 "properties": { | 61 "properties": { |
62 "instanceType": { | 62 "instanceType": { |
63 "type": "string", "enum": ["declarativeWebRequest.RedirectToEmptyDoc
ument"], | 63 "type": "string", "enum": ["declarativeWebRequest.RedirectToEmptyDoc
ument"], |
64 "nodoc": true | 64 "nodoc": true |
65 } | 65 } |
66 } | 66 } |
67 }, | 67 }, |
68 { | 68 { |
| 69 "id": "declarativeWebRequest.RedirectByRegEx", |
| 70 "description": "Redirects a request by applying a regular expression on
the URL. The regular expressions use the <a href=\"http://code.google.com/p/re2/
wiki/Syntax\">RE2 syntax</a>.", |
| 71 "type": "object", |
| 72 "properties": { |
| 73 "instanceType": { |
| 74 "type": "string", "enum": ["declarativeWebRequest.RedirectByRegEx"], |
| 75 "nodoc": true |
| 76 }, |
| 77 "from": { |
| 78 "type": "string", |
| 79 "description": "A match pattern that may contain capture groups. Cap
ture groups are referenced in the Perl syntax ($1, $2, ...) instead of the RE2 s
yntax (\\1, \\2, ...) in order to be closer to JavaScript Regular Expressions." |
| 80 }, |
| 81 "to": { |
| 82 "type": "string", |
| 83 "description": "Destination pattern." |
| 84 } |
| 85 } |
| 86 }, |
| 87 { |
69 "id": "declarativeWebRequest.SetRequestHeader", | 88 "id": "declarativeWebRequest.SetRequestHeader", |
70 "description": "Sets the request header of the specified name to the spe
cified value. If a header with the specified name did not exist before, a new on
e is created. Header name comparison is always case-insensitive. Each request he
ader name occurs only once in each request.", | 89 "description": "Sets the request header of the specified name to the spe
cified value. If a header with the specified name did not exist before, a new on
e is created. Header name comparison is always case-insensitive. Each request he
ader name occurs only once in each request.", |
71 "type": "object", | 90 "type": "object", |
72 "properties": { | 91 "properties": { |
73 "instanceType": { | 92 "instanceType": { |
74 "type": "string", "enum": ["declarativeWebRequest.SetRequestHeader"]
, | 93 "type": "string", "enum": ["declarativeWebRequest.SetRequestHeader"]
, |
75 "nodoc": true | 94 "nodoc": true |
76 }, | 95 }, |
77 "name": { | 96 "name": { |
78 "type": "string", | 97 "type": "string", |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 "options": { | 181 "options": { |
163 "supportsListeners": false, | 182 "supportsListeners": false, |
164 "supportsRules": true, | 183 "supportsRules": true, |
165 "conditions": ["declarativeWebRequest.RequestMatcher"], | 184 "conditions": ["declarativeWebRequest.RequestMatcher"], |
166 "actions": [ | 185 "actions": [ |
167 "declarativeWebRequest.AddResponseHeader", | 186 "declarativeWebRequest.AddResponseHeader", |
168 "declarativeWebRequest.CancelRequest", | 187 "declarativeWebRequest.CancelRequest", |
169 "declarativeWebRequest.RedirectRequest", | 188 "declarativeWebRequest.RedirectRequest", |
170 "declarativeWebRequest.RedirectToTransparentImage", | 189 "declarativeWebRequest.RedirectToTransparentImage", |
171 "declarativeWebRequest.RedirectToEmptyDocument", | 190 "declarativeWebRequest.RedirectToEmptyDocument", |
| 191 "declarativeWebRequest.RedirectByRegEx", |
172 "declarativeWebRequest.SetRequestHeader", | 192 "declarativeWebRequest.SetRequestHeader", |
173 "declarativeWebRequest.RemoveRequestHeader", | 193 "declarativeWebRequest.RemoveRequestHeader", |
174 "declarativeWebRequest.RemoveResponseHeader", | 194 "declarativeWebRequest.RemoveResponseHeader", |
175 "declarativeWebRequest.IgnoreRules" | 195 "declarativeWebRequest.IgnoreRules" |
176 ] | 196 ] |
177 } | 197 } |
178 } | 198 } |
179 ] | 199 ] |
180 } | 200 } |
181 ] | 201 ] |
OLD | NEW |