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": "experimental.webRequest", | 7 "namespace": "experimental.webRequest", |
8 "types": [ | 8 "types": [ |
9 { | 9 { |
10 "id": "RequestMatcher", | 10 "id": "RequestMatcher", |
11 "type": "object", | 11 "type": "object", |
12 "description": "Matches network events by various criteria.", | 12 "description": "Matches network events by various criteria.", |
13 "properties": { | 13 "properties": { |
14 "url": { | 14 "url": { |
15 "$ref": "UrlFilter", | 15 "$ref": "experimental.declarative.UrlFilter", |
16 "description": "Matches if the condition of the UrlFilter are fulfil
led for the URL of the request.", | 16 "description": "Matches if the condition of the UrlFilter are fulfil
led for the URL of the request.", |
17 "optional": true | 17 "optional": true |
18 }, | 18 }, |
19 "resourceType": { | 19 "resourceType": { |
20 "type": "array", | 20 "type": "array", |
21 "optional": true, | 21 "optional": true, |
22 "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.
", | 22 "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 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "xmlhttprequest", "other"] } | 23 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "xmlhttprequest", "other"] } |
24 }, | 24 }, |
25 "instanceType": { "type": "string", "enum": ["experimental.webRequest.
RequestMatcher"] } | 25 "instanceType": { "type": "string", "enum": ["experimental.webRequest.
RequestMatcher"] } |
(...skipping 25 matching lines...) Expand all Loading... |
51 "options": { | 51 "options": { |
52 "supportsListeners": false, | 52 "supportsListeners": false, |
53 "supportsRules": true, | 53 "supportsRules": true, |
54 "conditions": ["RequestMatcher"], | 54 "conditions": ["RequestMatcher"], |
55 "actions": ["CancelRequest", "RedirectRequest"] | 55 "actions": ["CancelRequest", "RedirectRequest"] |
56 } | 56 } |
57 } | 57 } |
58 ] | 58 ] |
59 } | 59 } |
60 ] | 60 ] |
OLD | NEW |