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 |
5 [permissions=downloads] | 8 [permissions=downloads] |
6 namespace downloads { | 9 namespace downloads { |
7 [inline_doc] dictionary HeaderNameValuePair { | 10 [inline_doc] dictionary HeaderNameValuePair { |
8 // Name of the HTTP header. | 11 // Name of the HTTP header. |
9 DOMString name; | 12 DOMString name; |
10 | 13 |
11 // Value of the HTTP header. | 14 // Value of the HTTP header. |
12 DOMString value; | 15 DOMString value; |
13 }; | 16 }; |
14 | 17 |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 // <code>FilenameSuggestion</code> object to <code>suggest</code> wins. In | 475 // <code>FilenameSuggestion</code> object to <code>suggest</code> wins. In |
473 // order to avoid confusion regarding which extension will win, users should | 476 // order to avoid confusion regarding which extension will win, users should |
474 // not install extensions that may conflict. If the download is initiated by | 477 // not install extensions that may conflict. If the download is initiated by |
475 // $ref:download and the target filename is known before the MIME type and | 478 // $ref:download and the target filename is known before the MIME type and |
476 // tentative filename have been determined, use | 479 // tentative filename have been determined, use |
477 // <code>DownloadOptions.filename</code> instead. | 480 // <code>DownloadOptions.filename</code> instead. |
478 [maxListeners=1] static void onDeterminingFilename( | 481 [maxListeners=1] static void onDeterminingFilename( |
479 DownloadItem downloadItem, SuggestFilenameCallback suggest); | 482 DownloadItem downloadItem, SuggestFilenameCallback suggest); |
480 }; | 483 }; |
481 }; | 484 }; |
OLD | NEW |