OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "extension", | 3 "namespace": "extension", |
4 "unprivileged": true, | 4 "unprivileged": true, |
5 "types": [ | 5 "types": [ |
6 { | 6 { |
7 "id": "MessageSender", | 7 "id": "MessageSender", |
8 "type": "object", | 8 "type": "object", |
9 "description": "An object containing information about the script contex
t that sent a message or request.", | 9 "description": "An object containing information about the script contex
t that sent a message or request.", |
10 "properties": { | 10 "properties": { |
(...skipping 5442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5453 }, | 5453 }, |
5454 "redirectUrl": { | 5454 "redirectUrl": { |
5455 "type": "string", | 5455 "type": "string", |
5456 "optional": true, | 5456 "optional": true, |
5457 "description": "Only used as a response to the onBeforeRequest event
. If set, the original request is prevented from being sent and is instead redir
ected to the given URL." | 5457 "description": "Only used as a response to the onBeforeRequest event
. If set, the original request is prevented from being sent and is instead redir
ected to the given URL." |
5458 }, | 5458 }, |
5459 "requestHeaders": { | 5459 "requestHeaders": { |
5460 "$ref": "HttpHeaders", | 5460 "$ref": "HttpHeaders", |
5461 "optional": true, | 5461 "optional": true, |
5462 "description": "Only used as a response to the onBeforeSendHeaders e
vent. If set, the request is made with these request headers instead." | 5462 "description": "Only used as a response to the onBeforeSendHeaders e
vent. If set, the request is made with these request headers instead." |
| 5463 }, |
| 5464 "authCredentials": { |
| 5465 "type": "object", |
| 5466 "optional": true, |
| 5467 "properties": { |
| 5468 "username": {"type": "string"}, |
| 5469 "password": {"type": "string"} |
| 5470 } |
5463 } | 5471 } |
5464 } | 5472 } |
5465 } | 5473 } |
5466 ], | 5474 ], |
5467 "functions": [ | 5475 "functions": [ |
5468 { | 5476 { |
5469 "name": "addEventListener", | 5477 "name": "addEventListener", |
5470 "nodoc": true, | 5478 "nodoc": true, |
5471 "type": "function", | 5479 "type": "function", |
5472 "description": "Used internally to implement the special form of addList
ener for the webRequest events.", | 5480 "description": "Used internally to implement the special form of addList
ener for the webRequest events.", |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5656 "name": "filter", | 5664 "name": "filter", |
5657 "description": "A set of filters that restricts the events that will
be sent to this listener." | 5665 "description": "A set of filters that restricts the events that will
be sent to this listener." |
5658 }, | 5666 }, |
5659 { | 5667 { |
5660 "type": "array", | 5668 "type": "array", |
5661 "optional": true, | 5669 "optional": true, |
5662 "name": "extraInfoSpec", | 5670 "name": "extraInfoSpec", |
5663 "description": "Array of extra information that should be passed to
the listener function.", | 5671 "description": "Array of extra information that should be passed to
the listener function.", |
5664 "items": { | 5672 "items": { |
5665 "type": "string", | 5673 "type": "string", |
5666 "enum": ["statusLine", "responseHeaders"] | 5674 "enum": ["statusLine", "responseHeaders", "blocking"] |
5667 } | 5675 } |
5668 } | 5676 } |
5669 ] | 5677 ], |
| 5678 "returns": { |
| 5679 "$ref": "BlockingResponse", |
| 5680 "description": "If \"blocking\" is specified in the \"extraInfoSpec\"
parameter, the event listener should return an object of this type.", |
| 5681 "optional": true |
| 5682 } |
5670 }, | 5683 }, |
5671 { | 5684 { |
5672 "name": "onResponseStarted", | 5685 "name": "onResponseStarted", |
5673 "type": "function", | 5686 "type": "function", |
5674 "description": "Fired when the first byte of the response body is receiv
ed. For HTTP requests, this means that the status line and response headers are
available.", | 5687 "description": "Fired when the first byte of the response body is receiv
ed. For HTTP requests, this means that the status line and response headers are
available.", |
5675 "parameters": [ | 5688 "parameters": [ |
5676 { | 5689 { |
5677 "type": "object", | 5690 "type": "object", |
5678 "name": "details", | 5691 "name": "details", |
5679 "properties": { | 5692 "properties": { |
(...skipping 2765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8445 "type": "function", | 8458 "type": "function", |
8446 "description": "Called when the browser's passwords have been cleare
d.", | 8459 "description": "Called when the browser's passwords have been cleare
d.", |
8447 "optional": true, | 8460 "optional": true, |
8448 "parameters": [] | 8461 "parameters": [] |
8449 } | 8462 } |
8450 ] | 8463 ] |
8451 } | 8464 } |
8452 ] | 8465 ] |
8453 } | 8466 } |
8454 ] | 8467 ] |
OLD | NEW |