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