| 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": "webRequest", | 7 "namespace": "webRequest", |
| 8 "description": "Use the <code>chrome.webRequest</code> API to observe and an
alyze traffic and to intercept, block, or modify requests in-flight.", | 8 "description": "Use the <code>chrome.webRequest</code> API to observe and an
alyze traffic and to intercept, block, or modify requests in-flight.", |
| 9 "properties": { | 9 "properties": { |
| 10 "MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES": { | 10 "MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES": { |
| 11 "value": 20, | 11 "value": 20, |
| 12 "description": "The maximum number of times that <code>handlerBehaviorCh
anged</code> can be called per 10 minute sustained interval. <code>handlerBehavi
orChanged</code> is an expensive function call that shouldn't be called often." | 12 "description": "The maximum number of times that <code>handlerBehaviorCh
anged</code> can be called per 10 minute sustained interval. <code>handlerBehavi
orChanged</code> is an expensive function call that shouldn't be called often." |
| 13 } | 13 } |
| 14 }, | 14 }, |
| 15 "types": [ | 15 "types": [ |
| 16 { | 16 { |
| 17 "id": "ResourceType", | 17 "id": "ResourceType", |
| 18 "type": "string", | 18 "type": "string", |
| 19 "enum": ["main_frame", "sub_frame", "stylesheet", "script", "image", "fo
nt", "object", "xmlhttprequest", "ping", "other"] | 19 "enum": ["main_frame", "sub_frame", "stylesheet", "script", "image", "fo
nt", "object", "xmlhttprequest", "ping", "websocket", "other"] |
| 20 }, | 20 }, |
| 21 { | 21 { |
| 22 "id": "OnBeforeRequestOptions", | 22 "id": "OnBeforeRequestOptions", |
| 23 "type": "string", | 23 "type": "string", |
| 24 "enum": ["blocking", "requestBody"] | 24 "enum": ["blocking", "requestBody"] |
| 25 }, | 25 }, |
| 26 { | 26 { |
| 27 "id": "OnBeforeSendHeadersOptions", | 27 "id": "OnBeforeSendHeadersOptions", |
| 28 "type": "string", | 28 "type": "string", |
| 29 "enum": ["requestHeaders", "blocking"] | 29 "enum": ["requestHeaders", "blocking"] |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 "description": "Returns value for event handlers that have the 'blocking
' extraInfoSpec applied. Allows the event handler to modify network requests.", | 104 "description": "Returns value for event handlers that have the 'blocking
' extraInfoSpec applied. Allows the event handler to modify network requests.", |
| 105 "properties": { | 105 "properties": { |
| 106 "cancel": { | 106 "cancel": { |
| 107 "type": "boolean", | 107 "type": "boolean", |
| 108 "optional": true, | 108 "optional": true, |
| 109 "description": "If true, the request is cancelled. Used in onBeforeR
equest, this prevents the request from being sent." | 109 "description": "If true, the request is cancelled. Used in onBeforeR
equest, this prevents the request from being sent." |
| 110 }, | 110 }, |
| 111 "redirectUrl": { | 111 "redirectUrl": { |
| 112 "type": "string", | 112 "type": "string", |
| 113 "optional": true, | 113 "optional": true, |
| 114 "description": "Only used as a response to the onBeforeRequest and o
nHeadersReceived events. If set, the original request is prevented from being se
nt/completed and is instead redirected to the given URL. Redirections to non-HTT
P schemes such as data: are allowed. Redirects initiated by a redirect action us
e the original request method for the redirect, with one exception: If the redir
ect is initiated at the onHeadersReceived stage, then the redirect will be issue
d using the GET method." | 114 "description": "Only used as a response to the onBeforeRequest and o
nHeadersReceived events. If set, the original request is prevented from being se
nt/completed and is instead redirected to the given URL. Redirections to non-HTT
P schemes such as <code>data://</code> are allowed. Redirects initiated by a red
irect action use the original request method for the redirect, with one exceptio
n: If the redirect is initiated at the onHeadersReceived stage, then the redirec
t will be issued using the GET method. Redirects from URLs with <code>ws://</cod
e> and <code>wss://</code> schemes are <b>ignored</b>." |
| 115 }, | 115 }, |
| 116 "requestHeaders": { | 116 "requestHeaders": { |
| 117 "$ref": "HttpHeaders", | 117 "$ref": "HttpHeaders", |
| 118 "optional": true, | 118 "optional": true, |
| 119 "description": "Only used as a response to the onBeforeSendHeaders e
vent. If set, the request is made with these request headers instead." | 119 "description": "Only used as a response to the onBeforeSendHeaders e
vent. If set, the request is made with these request headers instead." |
| 120 }, | 120 }, |
| 121 "responseHeaders": { | 121 "responseHeaders": { |
| 122 "$ref": "HttpHeaders", | 122 "$ref": "HttpHeaders", |
| 123 "optional": true, | 123 "optional": true, |
| 124 "description": "Only used as a response to the onHeadersReceived eve
nt. If set, the server is assumed to have responded with these response headers
instead. Only return <code>responseHeaders</code> if you really want to modify t
he headers in order to limit the number of conflicts (only one extension may mod
ify <code>responseHeaders</code> for each request)." | 124 "description": "Only used as a response to the onHeadersReceived eve
nt. If set, the server is assumed to have responded with these response headers
instead. Only return <code>responseHeaders</code> if you really want to modify t
he headers in order to limit the number of conflicts (only one extension may mod
ify <code>responseHeaders</code> for each request)." |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 { | 573 { |
| 574 "$ref": "RequestFilter", | 574 "$ref": "RequestFilter", |
| 575 "name": "filter", | 575 "name": "filter", |
| 576 "description": "A set of filters that restricts the events that will
be sent to this listener." | 576 "description": "A set of filters that restricts the events that will
be sent to this listener." |
| 577 } | 577 } |
| 578 ] | 578 ] |
| 579 } | 579 } |
| 580 ] | 580 ] |
| 581 } | 581 } |
| 582 ] | 582 ] |
| OLD | NEW |