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

Unified Diff: content/public/browser/download_interrupt_reason_values.h

Issue 2832223004: interrupt and resume download with CONTENT_LENGTH_MISMATCH errors (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/download_interrupt_reason_values.h
diff --git a/content/public/browser/download_interrupt_reason_values.h b/content/public/browser/download_interrupt_reason_values.h
index 2db302da5d80ab172c12b0e01437152676d47fc1..6d48bf45cc71628d06b9719c26371520dce1dceb 100644
--- a/content/public/browser/download_interrupt_reason_values.h
+++ b/content/public/browser/download_interrupt_reason_values.h
@@ -116,6 +116,11 @@ INTERRUPT_REASON(SERVER_FORBIDDEN, 36)
// may not be the intended server.
INTERRUPT_REASON(SERVER_UNREACHABLE, 37)
+// The server sent fewer bytes then the content-length header. It may indicate
+// that the connection was closed prematurely, or it may indicate that the
+// server sent an invalid Content-Length header.
+INTERRUPT_REASON(SERVER_CONTENT_LENGTH_MISMATCH, 38)
David Trainor- moved to gerrit 2017/04/25 03:50:41 Am I understanding that we only interrupt when we
qinmin 2017/04/25 19:27:47 Done.
xingliu 2017/04/25 19:32:05 FYI: We might need to change some other files, I r
qinmin 2017/04/25 20:52:12 Done. There is a chrome/common/extensions/api/down
+
// User input.
// The user canceled the download.

Powered by Google App Engine
This is Rietveld 408576698