Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: chrome/common/extensions/api/downloads.idl

Issue 1751603002: [Downloads] Rework how hashes are calculated for download files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of https://codereview.chromium.org/1781983002 since that's going in first. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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]
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.
(...skipping 30 matching lines...) Expand all
41 FILE_FAILED, 41 FILE_FAILED,
42 FILE_ACCESS_DENIED, 42 FILE_ACCESS_DENIED,
43 FILE_NO_SPACE, 43 FILE_NO_SPACE,
44 FILE_NAME_TOO_LONG, 44 FILE_NAME_TOO_LONG,
45 FILE_TOO_LARGE, 45 FILE_TOO_LARGE,
46 FILE_VIRUS_INFECTED, 46 FILE_VIRUS_INFECTED,
47 FILE_TRANSIENT_ERROR, 47 FILE_TRANSIENT_ERROR,
48 FILE_BLOCKED, 48 FILE_BLOCKED,
49 FILE_SECURITY_CHECK_FAILED, 49 FILE_SECURITY_CHECK_FAILED,
50 FILE_TOO_SHORT, 50 FILE_TOO_SHORT,
51 FILE_HASH_MISMATCH,
51 NETWORK_FAILED, 52 NETWORK_FAILED,
52 NETWORK_TIMEOUT, 53 NETWORK_TIMEOUT,
53 NETWORK_DISCONNECTED, 54 NETWORK_DISCONNECTED,
54 NETWORK_SERVER_DOWN, 55 NETWORK_SERVER_DOWN,
55 NETWORK_INVALID_REQUEST, 56 NETWORK_INVALID_REQUEST,
56 SERVER_FAILED, 57 SERVER_FAILED,
57 SERVER_NO_RANGE, 58 SERVER_NO_RANGE,
58 SERVER_BAD_CONTENT, 59 SERVER_BAD_CONTENT,
59 SERVER_UNAUTHORIZED, 60 SERVER_UNAUTHORIZED,
60 SERVER_CERT_PROBLEM, 61 SERVER_CERT_PROBLEM,
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 // <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
544 // avoid confusion regarding which extension will win, users should not 545 // avoid confusion regarding which extension will win, users should not
545 // install extensions that may conflict. If the download is initiated by 546 // install extensions that may conflict. If the download is initiated by
546 // $(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
547 // tentative filename have been determined, pass <code>filename</code> to 548 // tentative filename have been determined, pass <code>filename</code> to
548 // $(ref:download) instead. 549 // $(ref:download) instead.
549 [maxListeners=1] static void onDeterminingFilename( 550 [maxListeners=1] static void onDeterminingFilename(
550 DownloadItem downloadItem, SuggestFilenameCallback suggest); 551 DownloadItem downloadItem, SuggestFilenameCallback suggest);
551 }; 552 };
552 }; 553 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698