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 11 matching lines...) Expand all Loading... |
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": { | 26 "contentType": { |
27 "type": "array", | 27 "type": "array", |
28 "optional": true, | 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.", | 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" } | 30 "items": { "type": "string" } |
31 }, | 31 }, |
| 32 "excludeContentType": { |
| 33 "type": "array", |
| 34 "optional": true, |
| 35 "description": "Matches if the MIME media type of a response (from t
he HTTP Content-Type header) is <em>not</em> contained in the list.", |
| 36 "items": { "type": "string" } |
| 37 }, |
32 "instanceType": { | 38 "instanceType": { |
33 "type": "string", "enum": ["declarativeWebRequest.RequestMatcher"], | 39 "type": "string", "enum": ["declarativeWebRequest.RequestMatcher"], |
34 "nodoc": true | 40 "nodoc": true |
35 } | 41 } |
36 } | 42 } |
37 }, | 43 }, |
38 { | 44 { |
39 "id": "CancelRequest", | 45 "id": "CancelRequest", |
40 "description": "Declarative event action that cancels a network request.
", | 46 "description": "Declarative event action that cancels a network request.
", |
41 "type": "object", | 47 "type": "object", |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 "declarativeWebRequest.RemoveRequestHeader", | 381 "declarativeWebRequest.RemoveRequestHeader", |
376 "declarativeWebRequest.RemoveResponseHeader", | 382 "declarativeWebRequest.RemoveResponseHeader", |
377 "declarativeWebRequest.SetRequestHeader", | 383 "declarativeWebRequest.SetRequestHeader", |
378 "declarativeWebRequest.IgnoreRules" | 384 "declarativeWebRequest.IgnoreRules" |
379 ] | 385 ] |
380 } | 386 } |
381 } | 387 } |
382 ] | 388 ] |
383 } | 389 } |
384 ] | 390 ] |
OLD | NEW |