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 5804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5815 }, | 5815 }, |
5816 "requestHeaders": { | 5816 "requestHeaders": { |
5817 "$ref": "HttpHeaders", | 5817 "$ref": "HttpHeaders", |
5818 "optional": true, | 5818 "optional": true, |
5819 "description": "Only used as a response to the onBeforeSendHeaders e
vent. If set, the request is made with these request headers instead." | 5819 "description": "Only used as a response to the onBeforeSendHeaders e
vent. If set, the request is made with these request headers instead." |
5820 }, | 5820 }, |
5821 "responseHeaders": { | 5821 "responseHeaders": { |
5822 "$ref": "HttpHeaders", | 5822 "$ref": "HttpHeaders", |
5823 "optional": true, | 5823 "optional": true, |
5824 "description": "Only used as a response to the onHeadersReceived eve
nt. If set, the server is assumed to have responsed 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)." | 5824 "description": "Only used as a response to the onHeadersReceived eve
nt. If set, the server is assumed to have responsed 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)." |
| 5825 }, |
| 5826 "authCredentials": { |
| 5827 "type": "object", |
| 5828 "description": "Only used as a response to the onAuthRequired event.
If set, the request is made using the supplied credentials.", |
| 5829 "optional": true, |
| 5830 "properties": { |
| 5831 "username": {"type": "string"}, |
| 5832 "password": {"type": "string"} |
| 5833 } |
5825 } | 5834 } |
5826 } | 5835 } |
5827 } | 5836 } |
5828 ], | 5837 ], |
5829 "functions": [ | 5838 "functions": [ |
5830 { | 5839 { |
5831 "name": "addEventListener", | 5840 "name": "addEventListener", |
5832 "nodoc": true, | 5841 "nodoc": true, |
5833 "type": "function", | 5842 "type": "function", |
5834 "description": "Used internally to implement the special form of addList
ener for the webRequest events.", | 5843 "description": "Used internally to implement the special form of addList
ener for the webRequest events.", |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6083 "name": "filter", | 6092 "name": "filter", |
6084 "description": "A set of filters that restricts the events that will
be sent to this listener." | 6093 "description": "A set of filters that restricts the events that will
be sent to this listener." |
6085 }, | 6094 }, |
6086 { | 6095 { |
6087 "type": "array", | 6096 "type": "array", |
6088 "optional": true, | 6097 "optional": true, |
6089 "name": "extraInfoSpec", | 6098 "name": "extraInfoSpec", |
6090 "description": "Array of extra information that should be passed to
the listener function.", | 6099 "description": "Array of extra information that should be passed to
the listener function.", |
6091 "items": { | 6100 "items": { |
6092 "type": "string", | 6101 "type": "string", |
6093 "enum": ["responseHeaders"] | 6102 "enum": ["responseHeaders", "blocking"] |
6094 } | 6103 } |
6095 } | 6104 } |
6096 ] | 6105 ], |
| 6106 "returns": { |
| 6107 "$ref": "BlockingResponse", |
| 6108 "description": "If \"blocking\" is specified in the \"extraInfoSpec\"
parameter, the event listener should return an object of this type.", |
| 6109 "optional": true |
| 6110 } |
6097 }, | 6111 }, |
6098 { | 6112 { |
6099 "name": "onResponseStarted", | 6113 "name": "onResponseStarted", |
6100 "type": "function", | 6114 "type": "function", |
6101 "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.", | 6115 "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.", |
6102 "parameters": [ | 6116 "parameters": [ |
6103 { | 6117 { |
6104 "type": "object", | 6118 "type": "object", |
6105 "name": "details", | 6119 "name": "details", |
6106 "properties": { | 6120 "properties": { |
(...skipping 2841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8948 "optional": "true", | 8962 "optional": "true", |
8949 "description": "The MHTML data as a Blob." | 8963 "description": "The MHTML data as a Blob." |
8950 } | 8964 } |
8951 ] | 8965 ] |
8952 } | 8966 } |
8953 ] | 8967 ] |
8954 } | 8968 } |
8955 ] | 8969 ] |
8956 } | 8970 } |
8957 ] | 8971 ] |
OLD | NEW |