OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [permissions=downloads] | 5 [permissions=downloads] |
6 namespace downloads { | 6 namespace downloads { |
7 [inline_doc] dictionary HeaderNameValuePair { | 7 [inline_doc] dictionary HeaderNameValuePair { |
8 // Name of the HTTP header. | 8 // Name of the HTTP header. |
9 DOMString name; | 9 DOMString name; |
10 | 10 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 184 |
185 // Setting this string to a $ref:DownloadItem | 185 // Setting this string to a $ref:DownloadItem |
186 // property sorts the $ref:DownloadItem prior | 186 // property sorts the $ref:DownloadItem prior |
187 // to applying the above filters. For example, setting | 187 // to applying the above filters. For example, setting |
188 // <code>orderBy='startTime'</code> sorts the | 188 // <code>orderBy='startTime'</code> sorts the |
189 // $ref:DownloadItem by their start time in | 189 // $ref:DownloadItem by their start time in |
190 // ascending order. To specify descending order, prefix <code>orderBy</code> | 190 // ascending order. To specify descending order, prefix <code>orderBy</code> |
191 // with a hyphen: '-startTime'. | 191 // with a hyphen: '-startTime'. |
192 DOMString? orderBy; | 192 DOMString? orderBy; |
193 | 193 |
194 // The <code>id</code> of the $ref:DownloadItem | 194 // The <code>id</code> of the $ref:DownloadItem to query. |
195 // that changed. | |
196 long? id; | 195 long? id; |
197 | 196 |
198 // Absolute URL. | 197 // Absolute URL. |
199 DOMString? url; | 198 DOMString? url; |
200 | 199 |
201 // Absolute local path. | 200 // Absolute local path. |
202 DOMString? filename; | 201 DOMString? filename; |
203 | 202 |
204 // Indication of whether this download is thought to be safe or known to be | 203 // Indication of whether this download is thought to be safe or known to be |
205 // suspicious. | 204 // suspicious. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 long? current; | 251 long? current; |
253 }; | 252 }; |
254 | 253 |
255 [inline_doc] dictionary DownloadBooleanDiff { | 254 [inline_doc] dictionary DownloadBooleanDiff { |
256 boolean? previous; | 255 boolean? previous; |
257 boolean? current; | 256 boolean? current; |
258 }; | 257 }; |
259 | 258 |
260 // Encapsulates a change in a DownloadItem. | 259 // Encapsulates a change in a DownloadItem. |
261 [inline_doc] dictionary DownloadDelta { | 260 [inline_doc] dictionary DownloadDelta { |
262 // An identifier that is persistent across browser sessions. | 261 // The <code>id</code> of the $ref:DownloadItem |
| 262 // that changed. |
263 long id; | 263 long id; |
264 | 264 |
265 // The change in <code>url</code>, if any. | 265 // The change in <code>url</code>, if any. |
266 DownloadStringDiff? url; | 266 DownloadStringDiff? url; |
267 | 267 |
268 // The change in <code>filename</code>, if any. | 268 // The change in <code>filename</code>, if any. |
269 DownloadStringDiff? filename; | 269 DownloadStringDiff? filename; |
270 | 270 |
271 // The change in <code>danger</code>, if any. | 271 // The change in <code>danger</code>, if any. |
272 DownloadStringDiff? danger; | 272 DownloadStringDiff? danger; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 // history. | 422 // history. |
423 // |downloadId|: The <code>id</code> of the $ref:DownloadItem that was erase
d. | 423 // |downloadId|: The <code>id</code> of the $ref:DownloadItem that was erase
d. |
424 static void onErased(long downloadId); | 424 static void onErased(long downloadId); |
425 | 425 |
426 // When any of a $ref:DownloadItem's properties | 426 // When any of a $ref:DownloadItem's properties |
427 // except <code>bytesReceived</code> changes, this event fires with the | 427 // except <code>bytesReceived</code> changes, this event fires with the |
428 // <code>downloadId</code> and an object containing the properties that chan
ged. | 428 // <code>downloadId</code> and an object containing the properties that chan
ged. |
429 static void onChanged(DownloadDelta downloadDelta); | 429 static void onChanged(DownloadDelta downloadDelta); |
430 }; | 430 }; |
431 }; | 431 }; |
OLD | NEW |