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