OLD | NEW |
---|---|
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "experimental.downloads", | 3 "namespace": "experimental.downloads", |
4 "nodoc": "true", | 4 "nodoc": "true", |
5 "events": [ | 5 "events": [ |
6 { | 6 { |
7 "name": "onCreated", | 7 "name": "onCreated", |
8 "type": "function", | 8 "type": "function", |
9 "description": "This event fires with the DownloadItem object when a dow nload begins.", | 9 "description": "This event fires with the DownloadItem object when a dow nload begins.", |
10 "parameters": [ | 10 "parameters": [ |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 "description": "The URL was invalid." | 75 "description": "The URL was invalid." |
76 }, | 76 }, |
77 "ERROR_INVALID_OPERATION": { | 77 "ERROR_INVALID_OPERATION": { |
78 "type": "string", | 78 "type": "string", |
79 "value": "Invalid operation.", | 79 "value": "Invalid operation.", |
80 "description": "The requested operation cannot be performed at this time . This maybe due to the download being in a state where the requested operation is not allowed." | 80 "description": "The requested operation cannot be performed at this time . This maybe due to the download being in a state where the requested operation is not allowed." |
81 } | 81 } |
82 }, | 82 }, |
83 "types": [ | 83 "types": [ |
84 { | 84 { |
85 "id": "HttpHeaders", | |
86 "type": "array", | |
87 "description": "An array of HTTP headers. Each header is represented as a dictionary containing the keys <code>name</code> and either <code>value</code> or <code>binaryValue</code>.", | |
Sam Kerner (Chrome)
2012/01/11 16:21:15
I have not seen HTML tags like <code> used in this
| |
88 "items": { | |
89 "type": "object", | |
90 "properties": { | |
91 "name": {"type": "string", "description": "Name of the HTTP header." }, | |
92 "value": {"type": "string", "optional": true, "description": "Value of the HTTP header if it can be represented by UTF-8."}, | |
93 "binaryValue": { | |
94 "type": "array", | |
95 "optional": true, | |
96 "description": "Value of the HTTP header if it cannot be represent ed by UTF-8, stored as individual byte values (0..255).", | |
97 "items": {"type": "integer"} | |
98 } | |
99 } | |
100 } | |
101 }, | |
102 { | |
85 "id": "DownloadItem", | 103 "id": "DownloadItem", |
86 "type": "object", | 104 "type": "object", |
87 "description": "The state of a file as it is downloaded from the interne t.", | 105 "description": "The state of a file as it is downloaded from the interne t.", |
88 "properties": { | 106 "properties": { |
89 "id": { | 107 "id": { |
90 "type": "integer", | 108 "type": "integer", |
91 "description": "An identifier that is persistent across browser sess ions." | 109 "description": "An identifier that is persistent across browser sess ions." |
92 }, | 110 }, |
93 "url": { | 111 "url": { |
94 "type": "string", | 112 "type": "string", |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
552 "type": "function", | 570 "type": "function", |
553 "optional": true, | 571 "optional": true, |
554 "parameters": [], | 572 "parameters": [], |
555 "description": "Called when the request is completed. The download i s cancelled, completed, interrupted or doesn't exist anymore." | 573 "description": "Called when the request is completed. The download i s cancelled, completed, interrupted or doesn't exist anymore." |
556 } | 574 } |
557 ] | 575 ] |
558 } | 576 } |
559 ] | 577 ] |
560 } | 578 } |
561 ] | 579 ] |
OLD | NEW |