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

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

Issue 1444253003: Use If-Range instead of If-Match/If-Unmodified-Since for partial requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make it obvious that the interrupt reason is obsolete. Created 5 years, 1 month 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 92687b636f04ea831fbc8a1db4cebefdbc8477d9..95c4f4a9621c37f46a01e251051dc40d12231b73 100644
--- a/content/public/browser/download_interrupt_reason_values.h
+++ b/content/public/browser/download_interrupt_reason_values.h
@@ -86,9 +86,12 @@ INTERRUPT_REASON(SERVER_FAILED, 30)
// Internal use only: must restart from the beginning.
INTERRUPT_REASON(SERVER_NO_RANGE, 31)
-// The download request does not meet the specified precondition.
-// Internal use only: the file has changed on the server.
-INTERRUPT_REASON(SERVER_PRECONDITION, 32)
+// Precondition failed. This type of interruption could legitimately occur if a
+// partial download resumption was attempted using a If-Match header. However,
+// the downloads logic no longer uses If-Match headers and instead uses If-Range
+// headers where a precondition failure is not expected.
+//
+// Obsolete: INTERRUPT_REASON(SERVER_PRECONDITION, 32)
// The server does not have the requested data.
// "Unable to get file".

Powered by Google App Engine
This is Rietveld 408576698