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 "description": "Use the <code>chrome.declarativeWebRequest</code> module to
intercept, block, or modify requests in-flight. It is significantly faster than
the <a href='webRequest.html'><code>chrome.webRequest</code> API</a> because you
can register rules that are evaluated in the browser rather than the JavaScript
engine with reduces roundtrip latencies and allows higher efficiency.", |
8 "documentation_permissions_required": ["declarative", "declarativeWebRequest
"], | 9 "documentation_permissions_required": ["declarative", "declarativeWebRequest
"], |
9 "types": [ | 10 "types": [ |
10 { | 11 { |
11 "id": "HeaderFilter", | 12 "id": "HeaderFilter", |
12 "type": "object", | 13 "type": "object", |
13 "description": "Filters request headers for various criteria. Multiple c
riteria are evaluated as a conjunction.", | 14 "description": "Filters request headers for various criteria. Multiple c
riteria are evaluated as a conjunction.", |
14 "properties": { | 15 "properties": { |
15 "namePrefix": { | 16 "namePrefix": { |
16 "description" : "Matches if the header name starts with the specifie
d string.", | 17 "description" : "Matches if the header name starts with the specifie
d string.", |
17 "type": "string", | 18 "type": "string", |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 "tabId": {"type": "integer", "description": "The ID of the tab in
which the request takes place. Set to -1 if the request isn't related to a tab."
}, | 583 "tabId": {"type": "integer", "description": "The ID of the tab in
which the request takes place. Set to -1 if the request isn't related to a tab."
}, |
583 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "xmlhttprequest", "other"], "description
": "How the requested resource will be used."}, | 584 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "xmlhttprequest", "other"], "description
": "How the requested resource will be used."}, |
584 "timeStamp": {"type": "number", "description": "The time when this
signal is triggered, in milliseconds since the epoch."} | 585 "timeStamp": {"type": "number", "description": "The time when this
signal is triggered, in milliseconds since the epoch."} |
585 } | 586 } |
586 } | 587 } |
587 ] | 588 ] |
588 } | 589 } |
589 ] | 590 ] |
590 } | 591 } |
591 ] | 592 ] |
OLD | NEW |