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 { |
11 "id": "RequestMatcher", | 11 "id": "RequestMatcher", |
12 "type": "object", | 12 "type": "object", |
13 "description": "Matches network events by various criteria.", | 13 "description": "Matches network events by various criteria.", |
14 "properties": { | 14 "properties": { |
15 "url": { | 15 "url": { |
16 "$ref": "events.UrlFilter", | 16 "$ref": "events.UrlFilter", |
17 "description": "Matches if the condition of the UrlFilter are fulfil
led for the URL of the request.", | 17 "description": "Matches if the condition of the UrlFilter are fulfil
led for the URL of the request.", |
18 "optional": true | 18 "optional": true |
19 }, | 19 }, |
20 "resourceType": { | 20 "resourceType": { |
21 "type": "array", | 21 "type": "array", |
22 "optional": true, | 22 "optional": true, |
23 "description": "Matches if the request type of a request is containe
d in the list. Requests that cannot match any of the types will be filtered out.
", | 23 "description": "Matches if the request type of a request is containe
d in the list. Requests that cannot match any of the types will be filtered out.
", |
24 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "xmlhttprequest", "other"] } | 24 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "xmlhttprequest", "other"] } |
25 }, | 25 }, |
26 "instanceType": { "type": "string", "enum": ["declarativeWebRequest.Re
questMatcher"] } | 26 "instanceType": { |
| 27 "type": "string", "enum": ["declarativeWebRequest.RequestMatcher"], |
| 28 "nodoc": true |
| 29 } |
27 } | 30 } |
28 }, | 31 }, |
29 { | 32 { |
30 "id": "CancelRequest", | 33 "id": "CancelRequest", |
31 "description": "Declarative event action that cancels a network request.
", | 34 "description": "Declarative event action that cancels a network request.
", |
32 "type": "object", | 35 "type": "object", |
33 "properties": { | 36 "properties": { |
34 "instanceType": { "type": "string", "enum": ["declarativeWebRequest.Ca
ncelRequest"] } | 37 "instanceType": { |
| 38 "type": "string", "enum": ["declarativeWebRequest.CancelRequest"], |
| 39 "nodoc": true |
| 40 } |
35 } | 41 } |
36 }, | 42 }, |
37 { | 43 { |
38 "id": "RedirectRequest", | 44 "id": "RedirectRequest", |
39 "description": "Declarative event action that redirects a network reques
t.", | 45 "description": "Declarative event action that redirects a network reques
t.", |
40 "type": "object", | 46 "type": "object", |
41 "properties": { | 47 "properties": { |
42 "instanceType": { "type": "string", "enum": ["declarativeWebRequest.Re
directRequest"] }, | 48 "instanceType": { |
| 49 "type": "string", "enum": ["declarativeWebRequest.RedirectRequest"], |
| 50 "nodoc": true |
| 51 }, |
43 "redirectUrl": { "type": "string", "description": "Destination to wher
e the request is redirected."} | 52 "redirectUrl": { "type": "string", "description": "Destination to wher
e the request is redirected."} |
44 } | 53 } |
45 }, | 54 }, |
46 { | 55 { |
47 "id": "declarativeWebRequest.RedirectToTransparentImage", | 56 "id": "declarativeWebRequest.RedirectToTransparentImage", |
48 "description": "Declarative event action that redirects a network reques
t to a transparent image.", | 57 "description": "Declarative event action that redirects a network reques
t to a transparent image.", |
49 "type": "object", | 58 "type": "object", |
50 "properties": { | 59 "properties": { |
51 "instanceType": { | 60 "instanceType": { |
52 "type": "string", "enum": ["declarativeWebRequest.RedirectToTranspar
entImage"], | 61 "type": "string", "enum": ["declarativeWebRequest.RedirectToTranspar
entImage"], |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 "declarativeWebRequest.SetRequestHeader", | 201 "declarativeWebRequest.SetRequestHeader", |
193 "declarativeWebRequest.RemoveRequestHeader", | 202 "declarativeWebRequest.RemoveRequestHeader", |
194 "declarativeWebRequest.RemoveResponseHeader", | 203 "declarativeWebRequest.RemoveResponseHeader", |
195 "declarativeWebRequest.IgnoreRules" | 204 "declarativeWebRequest.IgnoreRules" |
196 ] | 205 ] |
197 } | 206 } |
198 } | 207 } |
199 ] | 208 ] |
200 } | 209 } |
201 ] | 210 ] |
OLD | NEW |