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 // Use the <code>chrome.downloads</code> API to programmatically initiate, |
| 6 // monitor, manipulate, and search for downloads. |
| 7 [permissions=downloads] |
5 namespace downloads { | 8 namespace downloads { |
6 [inline_doc] dictionary HeaderNameValuePair { | 9 [inline_doc] dictionary HeaderNameValuePair { |
7 // Name of the HTTP header. | 10 // Name of the HTTP header. |
8 DOMString name; | 11 DOMString name; |
9 | 12 |
10 // Value of the HTTP header. | 13 // Value of the HTTP header. |
11 DOMString value; | 14 DOMString value; |
12 }; | 15 }; |
13 | 16 |
14 // <dl><dt>uniquify</dt> | 17 // <dl><dt>uniquify</dt> |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 // <code>suggestion</code> object to <code>suggest</code> wins. In order to | 470 // <code>suggestion</code> object to <code>suggest</code> wins. In order to |
468 // avoid confusion regarding which extension will win, users should not | 471 // avoid confusion regarding which extension will win, users should not |
469 // install extensions that may conflict. If the download is initiated by | 472 // install extensions that may conflict. If the download is initiated by |
470 // $ref:download and the target filename is known before the MIME type and | 473 // $ref:download and the target filename is known before the MIME type and |
471 // tentative filename have been determined, pass <code>filename</code> to | 474 // tentative filename have been determined, pass <code>filename</code> to |
472 // $ref:download instead. | 475 // $ref:download instead. |
473 [maxListeners=1] static void onDeterminingFilename( | 476 [maxListeners=1] static void onDeterminingFilename( |
474 DownloadItem downloadItem, SuggestFilenameCallback suggest); | 477 DownloadItem downloadItem, SuggestFilenameCallback suggest); |
475 }; | 478 }; |
476 }; | 479 }; |
OLD | NEW |