Chromium Code Reviews| 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 4619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4630 "urls": { | 4630 "urls": { |
| 4631 "type": "array", | 4631 "type": "array", |
| 4632 "optional": true, | 4632 "optional": true, |
| 4633 "description": "A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out.", | 4633 "description": "A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out.", |
| 4634 "items": { "type": "string" } | 4634 "items": { "type": "string" } |
| 4635 }, | 4635 }, |
| 4636 "types": { | 4636 "types": { |
| 4637 "type": "array", | 4637 "type": "array", |
| 4638 "optional": true, | 4638 "optional": true, |
| 4639 "description": "A list of request types. Requests that cannot match any of the types will be filtered out.", | 4639 "description": "A list of request types. Requests that cannot match any of the types will be filtered out.", |
| 4640 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "other"] } | 4640 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xhr", "other"] } |
|
Matt Perry
2011/08/08 18:31:57
xhr seems slightly obscure. Let's rename it to "xm
| |
| 4641 }, | 4641 }, |
| 4642 "tabId": { "type": "integer", "optional": true }, | 4642 "tabId": { "type": "integer", "optional": true }, |
| 4643 "windowId": { "type": "integer", "optional": true } | 4643 "windowId": { "type": "integer", "optional": true } |
| 4644 } | 4644 } |
| 4645 }, | 4645 }, |
| 4646 { | 4646 { |
| 4647 "id": "HttpHeaders", | 4647 "id": "HttpHeaders", |
| 4648 "type": "array", | 4648 "type": "array", |
| 4649 "description": "An array of HTTP headers, in the form of name/value pair s.", | 4649 "description": "An array of HTTP headers, in the form of name/value pair s.", |
| 4650 "items": { | 4650 "items": { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4731 "parameters": [ | 4731 "parameters": [ |
| 4732 { | 4732 { |
| 4733 "type": "object", | 4733 "type": "object", |
| 4734 "name": "details", | 4734 "name": "details", |
| 4735 "properties": { | 4735 "properties": { |
| 4736 "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."}, | 4736 "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."}, |
| 4737 "url": {"type": "string"}, | 4737 "url": {"type": "string"}, |
| 4738 "method": {"type": "string", "description": "Standard HTTP method. "}, | 4738 "method": {"type": "string", "description": "Standard HTTP method. "}, |
| 4739 "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."}, | 4739 "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."}, |
| 4740 "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 ."}, | 4740 "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 ."}, |
| 4741 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "other"], "description": "How the reques ted resource will be used."}, | 4741 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xhr", "other"], "description": "How the requested resource will be used."}, |
| 4742 "timeStamp": {"type": "number", "description": "The time when the browser was about to make the request, in milliseconds since the epoch."} | 4742 "timeStamp": {"type": "number", "description": "The time when the browser was about to make the request, in milliseconds since the epoch."} |
| 4743 } | 4743 } |
| 4744 } | 4744 } |
| 4745 ], | 4745 ], |
| 4746 "extraParameters": [ | 4746 "extraParameters": [ |
| 4747 { | 4747 { |
| 4748 "$ref": "RequestFilter", | 4748 "$ref": "RequestFilter", |
| 4749 "optional": true, | 4749 "optional": true, |
| 4750 "name": "filter", | 4750 "name": "filter", |
| 4751 "description": "A set of filters that restricts the events that will be sent to this listener." | 4751 "description": "A set of filters that restricts the events that will be sent to this listener." |
| (...skipping 2646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7398 "description": "A string result code. The value is non-empty on success only in tests.", | 7398 "description": "A string result code. The value is non-empty on success only in tests.", |
| 7399 "optional": "true" | 7399 "optional": "true" |
| 7400 } | 7400 } |
| 7401 ] | 7401 ] |
| 7402 } | 7402 } |
| 7403 ] | 7403 ] |
| 7404 } | 7404 } |
| 7405 ] | 7405 ] |
| 7406 } | 7406 } |
| 7407 ] | 7407 ] |
| OLD | NEW |