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 3550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3561 "url": {"type": "string"}, | 3561 "url": {"type": "string"}, |
3562 "method": {"type": "string", "description": "Standard HTTP method.
"}, | 3562 "method": {"type": "string", "description": "Standard HTTP method.
"}, |
3563 "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
."}, | 3563 "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
."}, |
3564 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "other"], "description": "How the reques
ted resource will be used."}, | 3564 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st
ylesheet", "script", "image", "object", "other"], "description": "How the reques
ted resource will be used."}, |
3565 "timeStamp": {"type": "number", "description": "The time when the
browser was about to make the request, in milliseconds since the epoch."} | 3565 "timeStamp": {"type": "number", "description": "The time when the
browser was about to make the request, in milliseconds since the epoch."} |
3566 } | 3566 } |
3567 } | 3567 } |
3568 ] | 3568 ] |
3569 }, | 3569 }, |
3570 { | 3570 { |
| 3571 "name": "onBeforeSendHeaders", |
| 3572 "type": "function", |
| 3573 "description": "Fires before sending an HTTP request, once the request h
eaders are available.", |
| 3574 "parameters": [ |
| 3575 { |
| 3576 "type": "object", |
| 3577 "name": "details", |
| 3578 "properties": { |
| 3579 "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."}, |
| 3580 "url": {"type": "string"}, |
| 3581 "timeStamp": {"type": "number", "description": "The time when the
browser was about to make the request, in milliseconds since the epoch."} |
| 3582 } |
| 3583 } |
| 3584 ] |
| 3585 }, |
| 3586 { |
3571 "name": "onRequestSent", | 3587 "name": "onRequestSent", |
3572 "type": "function", | 3588 "type": "function", |
3573 "description": "Fires when a request is sent to the server.", | 3589 "description": "Fires when a request is sent to the server.", |
3574 "parameters": [ | 3590 "parameters": [ |
3575 { | 3591 { |
3576 "type": "object", | 3592 "type": "object", |
3577 "name": "details", | 3593 "name": "details", |
3578 "properties": { | 3594 "properties": { |
3579 "requestId": {"type": "string", "description": "The ID of the requ
est."}, | 3595 "requestId": {"type": "string", "description": "The ID of the requ
est."}, |
3580 "url": {"type": "string"}, | 3596 "url": {"type": "string"}, |
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4828 { | 4844 { |
4829 "type": "integer", | 4845 "type": "integer", |
4830 "name": "tabId", | 4846 "name": "tabId", |
4831 "description": "The id of the tab that was detached." | 4847 "description": "The id of the tab that was detached." |
4832 } | 4848 } |
4833 ] | 4849 ] |
4834 } | 4850 } |
4835 ] | 4851 ] |
4836 } | 4852 } |
4837 ] | 4853 ] |
OLD | NEW |