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

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

Issue 980543002: Adding statusCode for webRequest onHeadersReceived and onAuthRequired callbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « extensions/browser/api/web_request/web_request_api.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 "properties": { 282 "properties": {
283 "requestId": {"type": "string", "description": "The ID of the requ est. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request."}, 283 "requestId": {"type": "string", "description": "The ID of the requ est. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request."},
284 "url": {"type": "string"}, 284 "url": {"type": "string"},
285 "method": {"type": "string", "description": "Standard HTTP method. "}, 285 "method": {"type": "string", "description": "Standard HTTP method. "},
286 "frameId": {"type": "integer", "description": "The value 0 indicat es that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (<code>type</code> is <code>main_frame</code> or <code>sub_frame</code>) , <code>frameId</code> indicates the ID of this frame, not the ID of the outer f rame. Frame IDs are unique within a tab."}, 286 "frameId": {"type": "integer", "description": "The value 0 indicat es that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (<code>type</code> is <code>main_frame</code> or <code>sub_frame</code>) , <code>frameId</code> indicates the ID of this frame, not the ID of the outer f rame. Frame IDs are unique within a tab."},
287 "parentFrameId": {"type": "integer", "description": "ID of frame t hat wraps the frame which sent the request. Set to -1 if no parent frame exists. "}, 287 "parentFrameId": {"type": "integer", "description": "ID of frame t hat wraps the frame which sent the request. Set to -1 if no parent frame exists. "},
288 "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." }, 288 "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." },
289 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"], "description ": "How the requested resource will be used."}, 289 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"], "description ": "How the requested resource will be used."},
290 "timeStamp": {"type": "number", "description": "The time when this signal is triggered, in milliseconds since the epoch."}, 290 "timeStamp": {"type": "number", "description": "The time when this signal is triggered, in milliseconds since the epoch."},
291 "statusLine": {"type": "string", "description": "HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., re sponses that lack a status line)."}, 291 "statusLine": {"type": "string", "description": "HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., re sponses that lack a status line)."},
292 "responseHeaders": {"$ref": "HttpHeaders", "optional": true, "desc ription": "The HTTP response headers that have been received with this response. "} 292 "responseHeaders": {"$ref": "HttpHeaders", "optional": true, "desc ription": "The HTTP response headers that have been received with this response. "},
293 "statusCode": {"type": "integer", "description": "Standard HTTP st atus code returned by the server."}
293 } 294 }
294 } 295 }
295 ], 296 ],
296 "extraParameters": [ 297 "extraParameters": [
297 { 298 {
298 "$ref": "RequestFilter", 299 "$ref": "RequestFilter",
299 "name": "filter", 300 "name": "filter",
300 "description": "A set of filters that restricts the events that will be sent to this listener." 301 "description": "A set of filters that restricts the events that will be sent to this listener."
301 }, 302 },
302 { 303 {
(...skipping 29 matching lines...) Expand all
332 "frameId": {"type": "integer", "description": "The value 0 indicat es that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (<code>type</code> is <code>main_frame</code> or <code>sub_frame</code>) , <code>frameId</code> indicates the ID of this frame, not the ID of the outer f rame. Frame IDs are unique within a tab."}, 333 "frameId": {"type": "integer", "description": "The value 0 indicat es that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (<code>type</code> is <code>main_frame</code> or <code>sub_frame</code>) , <code>frameId</code> indicates the ID of this frame, not the ID of the outer f rame. Frame IDs are unique within a tab."},
333 "parentFrameId": {"type": "integer", "description": "ID of frame t hat wraps the frame which sent the request. Set to -1 if no parent frame exists. "}, 334 "parentFrameId": {"type": "integer", "description": "ID of frame t hat wraps the frame which sent the request. Set to -1 if no parent frame exists. "},
334 "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." }, 335 "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." },
335 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"], "description ": "How the requested resource will be used."}, 336 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"], "description ": "How the requested resource will be used."},
336 "timeStamp": {"type": "number", "description": "The time when this signal is triggered, in milliseconds since the epoch."}, 337 "timeStamp": {"type": "number", "description": "The time when this signal is triggered, in milliseconds since the epoch."},
337 "scheme": {"type": "string", "description": "The authentication sc heme, e.g. Basic or Digest."}, 338 "scheme": {"type": "string", "description": "The authentication sc heme, e.g. Basic or Digest."},
338 "realm": {"type": "string", "description": "The authentication rea lm provided by the server, if there is one.", "optional": true}, 339 "realm": {"type": "string", "description": "The authentication rea lm provided by the server, if there is one.", "optional": true},
339 "challenger": {"type": "object", "description": "The server reques ting authentication.", "properties": {"host": {"type": "string"}, "port": {"type ": "integer"}}}, 340 "challenger": {"type": "object", "description": "The server reques ting authentication.", "properties": {"host": {"type": "string"}, "port": {"type ": "integer"}}},
340 "isProxy": {"type": "boolean", "description": "True for Proxy-Auth enticate, false for WWW-Authenticate."}, 341 "isProxy": {"type": "boolean", "description": "True for Proxy-Auth enticate, false for WWW-Authenticate."},
341 "responseHeaders": {"$ref": "HttpHeaders", "optional": true, "desc ription": "The HTTP response headers that were received along with this response ."}, 342 "responseHeaders": {"$ref": "HttpHeaders", "optional": true, "desc ription": "The HTTP response headers that were received along with this response ."},
342 "statusLine": {"type": "string", "description": "HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., re sponses that lack a status line) or an empty string if there are no headers."} 343 "statusLine": {"type": "string", "description": "HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., re sponses that lack a status line) or an empty string if there are no headers."},
344 "statusCode": {"type": "integer", "description": "Standard HTTP st atus code returned by the server."}
343 } 345 }
344 }, 346 },
345 { 347 {
346 "type": "function", 348 "type": "function",
347 "optional": true, 349 "optional": true,
348 "name": "callback", 350 "name": "callback",
349 "parameters": [ 351 "parameters": [
350 {"name": "response", "$ref": "BlockingResponse"} 352 {"name": "response", "$ref": "BlockingResponse"}
351 ] 353 ]
352 } 354 }
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 { 536 {
535 "$ref": "RequestFilter", 537 "$ref": "RequestFilter",
536 "name": "filter", 538 "name": "filter",
537 "description": "A set of filters that restricts the events that will be sent to this listener." 539 "description": "A set of filters that restricts the events that will be sent to this listener."
538 } 540 }
539 ] 541 ]
540 } 542 }
541 ] 543 ]
542 } 544 }
543 ] 545 ]
OLDNEW
« no previous file with comments | « extensions/browser/api/web_request/web_request_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698