| 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 "contentType": { |
| 27 "type": "array", |
| 28 "optional": true, |
| 29 "description": "Matches if the MIME media type of a response (from t
he HTTP Content-Type header) is contained in the list.", |
| 30 "items": { "type": "string" } |
| 31 }, |
| 26 "instanceType": { | 32 "instanceType": { |
| 27 "type": "string", "enum": ["declarativeWebRequest.RequestMatcher"], | 33 "type": "string", "enum": ["declarativeWebRequest.RequestMatcher"], |
| 28 "nodoc": true | 34 "nodoc": true |
| 29 } | 35 } |
| 30 } | 36 } |
| 31 }, | 37 }, |
| 32 { | 38 { |
| 33 "id": "CancelRequest", | 39 "id": "CancelRequest", |
| 34 "description": "Declarative event action that cancels a network request.
", | 40 "description": "Declarative event action that cancels a network request.
", |
| 35 "type": "object", | 41 "type": "object", |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 "declarativeWebRequest.SetRequestHeader", | 207 "declarativeWebRequest.SetRequestHeader", |
| 202 "declarativeWebRequest.RemoveRequestHeader", | 208 "declarativeWebRequest.RemoveRequestHeader", |
| 203 "declarativeWebRequest.RemoveResponseHeader", | 209 "declarativeWebRequest.RemoveResponseHeader", |
| 204 "declarativeWebRequest.IgnoreRules" | 210 "declarativeWebRequest.IgnoreRules" |
| 205 ] | 211 ] |
| 206 } | 212 } |
| 207 } | 213 } |
| 208 ] | 214 ] |
| 209 } | 215 } |
| 210 ] | 216 ] |
| OLD | NEW |