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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6047 ], | 6056 ], |
6048 "returns": { | 6057 "returns": { |
6049 "$ref": "BlockingResponse", | 6058 "$ref": "BlockingResponse", |
6050 "description": "If \"blocking\" is specified in the \"extraInfoSpec\"
parameter, the event listener should return an object of this type.", | 6059 "description": "If \"blocking\" is specified in the \"extraInfoSpec\"
parameter, the event listener should return an object of this type.", |
6051 "optional": true | 6060 "optional": true |
6052 } | 6061 } |
6053 }, | 6062 }, |
6054 { | 6063 { |
6055 "name": "onAuthRequired", | 6064 "name": "onAuthRequired", |
6056 "type": "function", | 6065 "type": "function", |
6057 "description": "Fired when an authentication failure was received. Depen
ding on whether the user provides credentials, the request is either reissued or
cancelled.", | 6066 "description": "Fired when an authentication failure was received. The l
istener has three options: it can provide authentication credentials, it can can
cel the request and display the error page, or it can take no action on the chal
lenge. If bad user credentials are provided, this may be called multiple times f
or the same request.", |
6058 "parameters": [ | 6067 "parameters": [ |
6059 { | 6068 { |
6060 "type": "object", | 6069 "type": "object", |
6061 "name": "details", | 6070 "name": "details", |
6062 "properties": { | 6071 "properties": { |
6063 "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."}, | 6072 "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."}, |
6064 "url": {"type": "string"}, | 6073 "url": {"type": "string"}, |
6065 "method": {"type": "string", "description": "Standard HTTP method.
"}, | 6074 "method": {"type": "string", "description": "Standard HTTP method.
"}, |
6066 "frameId": {"type": "integer", "description": "0 indicates the req
uest 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 frame. Frame IDs
are unique within a tab."}, | 6075 "frameId": {"type": "integer", "description": "0 indicates the req
uest 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 frame. Frame IDs
are unique within a tab."}, |
6067 "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."
}, | 6076 "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."
}, |
(...skipping 15 matching lines...) Expand all 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 |