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

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

Issue 2832223004: interrupt and resume download with CONTENT_LENGTH_MISMATCH errors (Closed)
Patch Set: fix tests Created 3 years, 7 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
« no previous file with comments | « content/browser/download/download_stats.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Server certificate problem. 109 // Server certificate problem.
110 INTERRUPT_REASON(SERVER_CERT_PROBLEM, 35) 110 INTERRUPT_REASON(SERVER_CERT_PROBLEM, 35)
111 111
112 // Server access forbidden. 112 // Server access forbidden.
113 INTERRUPT_REASON(SERVER_FORBIDDEN, 36) 113 INTERRUPT_REASON(SERVER_FORBIDDEN, 36)
114 114
115 // Unexpected server response. This might indicate that the responding server 115 // Unexpected server response. This might indicate that the responding server
116 // may not be the intended server. 116 // may not be the intended server.
117 INTERRUPT_REASON(SERVER_UNREACHABLE, 37) 117 INTERRUPT_REASON(SERVER_UNREACHABLE, 37)
118 118
119 // The server sent fewer bytes than the content-length header. It may indicate
120 // that the connection was closed prematurely, or the Content-Length header was
121 // invalid. The download is only interrupted if strong validators are present.
122 // Otherwise, it is treated as finished.
123 INTERRUPT_REASON(SERVER_CONTENT_LENGTH_MISMATCH, 38)
124
119 // User input. 125 // User input.
120 126
121 // The user canceled the download. 127 // The user canceled the download.
122 // "Canceled". 128 // "Canceled".
123 INTERRUPT_REASON(USER_CANCELED, 40) 129 INTERRUPT_REASON(USER_CANCELED, 40)
124 130
125 // The user shut down the browser. 131 // The user shut down the browser.
126 // Internal use only: resume pending downloads if possible. 132 // Internal use only: resume pending downloads if possible.
127 INTERRUPT_REASON(USER_SHUTDOWN, 41) 133 INTERRUPT_REASON(USER_SHUTDOWN, 41)
128 134
129 135
130 // Crash. 136 // Crash.
131 137
132 // The browser crashed. 138 // The browser crashed.
133 // Internal use only: resume pending downloads if possible. 139 // Internal use only: resume pending downloads if possible.
134 INTERRUPT_REASON(CRASH, 50) 140 INTERRUPT_REASON(CRASH, 50)
OLDNEW
« no previous file with comments | « content/browser/download/download_stats.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698