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