| 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 "types": [ | 8 "types": [ |
| 9 { | 9 { |
| 10 "id": "RequestFilter", | 10 "id": "RequestFilter", |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 "parameters": [ | 99 "parameters": [ |
| 100 { | 100 { |
| 101 "type": "object", | 101 "type": "object", |
| 102 "name": "details", | 102 "name": "details", |
| 103 "properties": { | 103 "properties": { |
| 104 "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."}, | 104 "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."}, |
| 105 "url": {"type": "string"}, | 105 "url": {"type": "string"}, |
| 106 "method": {"type": "string", "description": "Standard HTTP method.
"}, | 106 "method": {"type": "string", "description": "Standard HTTP method.
"}, |
| 107 "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."}, | 107 "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."}, |
| 108 "parentFrameId": {"type": "integer", "description": "ID of frame t
hat wraps the frame which sent the request. Set to -1 if no parent frame exists.
"}, | 108 "parentFrameId": {"type": "integer", "description": "ID of frame t
hat wraps the frame which sent the request. Set to -1 if no parent frame exists.
"}, |
| 109 "postData": { |
| 110 "type": "object", |
| 111 "optional": true, |
| 112 "description": "POST data of the request.", |
| 113 "properties": {}, |
| 114 "additionalProperties": { |
| 115 "type": "array", |
| 116 "items": { "type": "string" } |
| 117 } |
| 118 }, |
| 109 "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."
}, | 119 "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."
}, |
| 110 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "xmlhttprequest", "other"], "description
": "How the requested resource will be used."}, | 120 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "xmlhttprequest", "other"], "description
": "How the requested resource will be used."}, |
| 111 "timeStamp": {"type": "number", "description": "The time when this
signal is triggered, in milliseconds since the epoch."} | 121 "timeStamp": {"type": "number", "description": "The time when this
signal is triggered, in milliseconds since the epoch."} |
| 112 } | 122 } |
| 113 } | 123 } |
| 114 ], | 124 ], |
| 115 "extraParameters": [ | 125 "extraParameters": [ |
| 116 { | 126 { |
| 117 "$ref": "RequestFilter", | 127 "$ref": "RequestFilter", |
| 118 "name": "filter", | 128 "name": "filter", |
| 119 "description": "A set of filters that restricts the events that will
be sent to this listener." | 129 "description": "A set of filters that restricts the events that will
be sent to this listener." |
| 120 }, | 130 }, |
| 121 { | 131 { |
| 122 "type": "array", | 132 "type": "array", |
| 123 "optional": true, | 133 "optional": true, |
| 124 "name": "extraInfoSpec", | 134 "name": "extraInfoSpec", |
| 125 "description": "Array of extra information that should be passed to
the listener function.", | 135 "description": "Array of extra information that should be passed to
the listener function.", |
| 126 "items": { | 136 "items": { |
| 127 "type": "string", | 137 "type": "string", |
| 128 "enum": ["blocking"] | 138 "enum": ["blocking", "requestPostData"] |
| 129 } | 139 } |
| 130 } | 140 } |
| 131 ], | 141 ], |
| 132 "returns": { | 142 "returns": { |
| 133 "$ref": "BlockingResponse", | 143 "$ref": "BlockingResponse", |
| 134 "description": "If \"blocking\" is specified in the \"extraInfoSpec\"
parameter, the event listener should return an object of this type.", | 144 "description": "If \"blocking\" is specified in the \"extraInfoSpec\"
parameter, the event listener should return an object of this type.", |
| 135 "optional": true | 145 "optional": true |
| 136 } | 146 } |
| 137 }, | 147 }, |
| 138 { | 148 { |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 { | 487 { |
| 478 "$ref": "RequestFilter", | 488 "$ref": "RequestFilter", |
| 479 "name": "filter", | 489 "name": "filter", |
| 480 "description": "A set of filters that restricts the events that will
be sent to this listener." | 490 "description": "A set of filters that restricts the events that will
be sent to this listener." |
| 481 } | 491 } |
| 482 ] | 492 ] |
| 483 } | 493 } |
| 484 ] | 494 ] |
| 485 } | 495 } |
| 486 ] | 496 ] |
| OLD | NEW |