Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 7599027: Add support for XMLHttpRequests to the webRequest API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 4646 matching lines...) Expand 10 before | Expand all | Expand 10 after
4657 "urls": { 4657 "urls": {
4658 "type": "array", 4658 "type": "array",
4659 "optional": true, 4659 "optional": true,
4660 "description": "A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out.", 4660 "description": "A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out.",
4661 "items": { "type": "string" } 4661 "items": { "type": "string" }
4662 }, 4662 },
4663 "types": { 4663 "types": {
4664 "type": "array", 4664 "type": "array",
4665 "optional": true, 4665 "optional": true,
4666 "description": "A list of request types. Requests that cannot match any of the types will be filtered out.", 4666 "description": "A list of request types. Requests that cannot match any of the types will be filtered out.",
4667 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "other"] } 4667 "items": { "type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"] }
4668 }, 4668 },
4669 "tabId": { "type": "integer", "optional": true }, 4669 "tabId": { "type": "integer", "optional": true },
4670 "windowId": { "type": "integer", "optional": true } 4670 "windowId": { "type": "integer", "optional": true }
4671 } 4671 }
4672 }, 4672 },
4673 { 4673 {
4674 "id": "HttpHeaders", 4674 "id": "HttpHeaders",
4675 "type": "array", 4675 "type": "array",
4676 "description": "An array of HTTP headers, in the form of name/value pair s.", 4676 "description": "An array of HTTP headers, in the form of name/value pair s.",
4677 "items": { 4677 "items": {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
4758 "parameters": [ 4758 "parameters": [
4759 { 4759 {
4760 "type": "object", 4760 "type": "object",
4761 "name": "details", 4761 "name": "details",
4762 "properties": { 4762 "properties": {
4763 "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."}, 4763 "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."},
4764 "url": {"type": "string"}, 4764 "url": {"type": "string"},
4765 "method": {"type": "string", "description": "Standard HTTP method. "}, 4765 "method": {"type": "string", "description": "Standard HTTP method. "},
4766 "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."}, 4766 "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."},
4767 "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 ."}, 4767 "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 ."},
4768 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "other"], "description": "How the reques ted resource will be used."}, 4768 "type": {"type": "string", "enum": ["main_frame", "sub_frame", "st ylesheet", "script", "image", "object", "xmlhttprequest", "other"], "description ": "How the requested resource will be used."},
4769 "timeStamp": {"type": "number", "description": "The time when the browser was about to make the request, in milliseconds since the epoch."} 4769 "timeStamp": {"type": "number", "description": "The time when the browser was about to make the request, in milliseconds since the epoch."}
4770 } 4770 }
4771 } 4771 }
4772 ], 4772 ],
4773 "extraParameters": [ 4773 "extraParameters": [
4774 { 4774 {
4775 "$ref": "RequestFilter", 4775 "$ref": "RequestFilter",
4776 "optional": true, 4776 "optional": true,
4777 "name": "filter", 4777 "name": "filter",
4778 "description": "A set of filters that restricts the events that will be sent to this listener." 4778 "description": "A set of filters that restricts the events that will be sent to this listener."
(...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after
7414 "description": "A string result code. The value is non-empty on success only in tests.", 7414 "description": "A string result code. The value is non-empty on success only in tests.",
7415 "optional": "true" 7415 "optional": "true"
7416 } 7416 }
7417 ] 7417 ]
7418 } 7418 }
7419 ] 7419 ]
7420 } 7420 }
7421 ] 7421 ]
7422 } 7422 }
7423 ] 7423 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698