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

Side by Side Diff: content/public/browser/download_interrupt_reason_values.h

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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Note that the embedder is welcome to persist these values across 5 // Note that the embedder is welcome to persist these values across
6 // invocations of the browser, and possibly across browser versions. 6 // invocations of the browser, and possibly across browser versions.
7 // Thus individual errors may be deprecated and new errors added, but 7 // Thus individual errors may be deprecated and new errors added, but
8 // the values of particular errors should not be changed. 8 // the values of particular errors should not be changed.
9 9
10 // File errors. 10 // File errors.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 INTERRUPT_REASON(FILE_BLOCKED, 11) 44 INTERRUPT_REASON(FILE_BLOCKED, 11)
45 45
46 // An attempt to check the safety of the download failed due to unexpected 46 // An attempt to check the safety of the download failed due to unexpected
47 // reasons. See http://crbug.com/153212. 47 // reasons. See http://crbug.com/153212.
48 INTERRUPT_REASON(FILE_SECURITY_CHECK_FAILED, 12) 48 INTERRUPT_REASON(FILE_SECURITY_CHECK_FAILED, 12)
49 49
50 // An attempt was made to seek past the end of a file in opening 50 // An attempt was made to seek past the end of a file in opening
51 // a file (as part of resuming a previously interrupted download). 51 // a file (as part of resuming a previously interrupted download).
52 INTERRUPT_REASON(FILE_TOO_SHORT, 13) 52 INTERRUPT_REASON(FILE_TOO_SHORT, 13)
53 53
54 // The partial file didn't match the expected hash.
55 INTERRUPT_REASON(FILE_HASH_MISMATCH, 14)
56
54 // Network errors. 57 // Network errors.
55 58
56 // Generic network failure. 59 // Generic network failure.
57 // "Network Error". 60 // "Network Error".
58 INTERRUPT_REASON(NETWORK_FAILED, 20) 61 INTERRUPT_REASON(NETWORK_FAILED, 20)
59 62
60 // The network operation timed out. 63 // The network operation timed out.
61 // "Operation Timed Out". 64 // "Operation Timed Out".
62 INTERRUPT_REASON(NETWORK_TIMEOUT, 21) 65 INTERRUPT_REASON(NETWORK_TIMEOUT, 21)
63 66
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // The user shut down the browser. 122 // The user shut down the browser.
120 // Internal use only: resume pending downloads if possible. 123 // Internal use only: resume pending downloads if possible.
121 INTERRUPT_REASON(USER_SHUTDOWN, 41) 124 INTERRUPT_REASON(USER_SHUTDOWN, 41)
122 125
123 126
124 // Crash. 127 // Crash.
125 128
126 // The browser crashed. 129 // The browser crashed.
127 // Internal use only: resume pending downloads if possible. 130 // Internal use only: resume pending downloads if possible.
128 INTERRUPT_REASON(CRASH, 50) 131 INTERRUPT_REASON(CRASH, 50)
OLDNEW
« no previous file with comments | « content/public/browser/download_destination_observer.h ('k') | content/public/browser/download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698