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 3581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3592 "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."}, | 3592 "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."}, |
3593 "url": {"type": "string"}, | 3593 "url": {"type": "string"}, |
3594 "method": {"type": "string", "description": "Standard HTTP method.
"}, | 3594 "method": {"type": "string", "description": "Standard HTTP method.
"}, |
3595 "tabId": {"type": "integer", "description": "The ID of the tab in
which the request takes place. Set to null if the request isn't related to a tab
."}, | 3595 "tabId": {"type": "integer", "description": "The ID of the tab in
which the request takes place. Set to null if the request isn't related to a tab
."}, |
3596 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "other"], "description": "How the reques
ted resource will be used."} | 3596 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "other"], "description": "How the reques
ted resource will be used."} |
3597 } | 3597 } |
3598 } | 3598 } |
3599 ] | 3599 ] |
3600 }, | 3600 }, |
3601 { | 3601 { |
| 3602 "name": "onBeforeSendHeaders", |
| 3603 "type": "function", |
| 3604 "description": "Fires before sending an HTTP request, once the request h
eaders are available.", |
| 3605 "parameters": [ |
| 3606 { |
| 3607 "type": "object", |
| 3608 "name": "details", |
| 3609 "properties": { |
| 3610 "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."}, |
| 3611 "url": {"type": "string"}, |
| 3612 "timeStamp": {"type": "number", "description": "The time when the
browser was about to make the request, in milliseconds since the epoch."} |
| 3613 } |
| 3614 } |
| 3615 ] |
| 3616 }, |
| 3617 { |
3602 "name": "onRequestSent", | 3618 "name": "onRequestSent", |
3603 "type": "function", | 3619 "type": "function", |
3604 "description": "Fires when a request is sent to the server.", | 3620 "description": "Fires when a request is sent to the server.", |
3605 "parameters": [ | 3621 "parameters": [ |
3606 { | 3622 { |
3607 "type": "object", | 3623 "type": "object", |
3608 "name": "details", | 3624 "name": "details", |
3609 "properties": { | 3625 "properties": { |
3610 "requestId": {"type": "string", "description": "The ID of the requ
est."}, | 3626 "requestId": {"type": "string", "description": "The ID of the requ
est."}, |
3611 "url": {"type": "string"}, | 3627 "url": {"type": "string"}, |
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4854 { | 4870 { |
4855 "type": "integer", | 4871 "type": "integer", |
4856 "name": "tabId", | 4872 "name": "tabId", |
4857 "description": "The id of the tab that was detached." | 4873 "description": "The id of the tab that was detached." |
4858 } | 4874 } |
4859 ] | 4875 ] |
4860 } | 4876 } |
4861 ] | 4877 ] |
4862 } | 4878 } |
4863 ] | 4879 ] |
OLD | NEW |