Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: extensions/common/api/web_request.json

Issue 2449913002: Support WebSocket in WebRequest API. (Closed)
Patch Set: Add tests for onAuthRequired path for WS handshake. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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": {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
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>."
Devlin 2017/02/21 16:10:44 nit: While data: is technically a scheme, I don't
pkalinnikov 2017/02/21 19:18:16 Done.
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
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 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698