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

Unified Diff: content/browser/download/download_create_info.h

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk. Created 9 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/browser/download/download_create_info.h
diff --git a/content/browser/download/download_create_info.h b/content/browser/download/download_create_info.h
index ed052943cd4e4d67fdf890241c3cf395405f8ee4..c3059e9df7f5c2ca9b3687305054d18d6588a4b9 100644
--- a/content/browser/download/download_create_info.h
+++ b/content/browser/download/download_create_info.h
@@ -13,7 +13,7 @@
#include "base/file_path.h"
#include "base/time.h"
#include "content/browser/download/download_file.h"
-#include "content/browser/download/download_id.h"
+#include "content/browser/download/interrupt_reasons.h"
#include "content/common/content_export.h"
#include "content/public/common/page_transition_types.h"
#include "googleurl/src/gurl.h"
@@ -87,9 +87,21 @@ struct CONTENT_EXPORT DownloadCreateInfo {
// which may look at the file extension and first few bytes of the file.
std::string original_mime_type;
+ // For restarting a download, the modification time of the file.
+ std::string last_modified;
+
+ // For restarting a download, the ETAG of the file.
+ std::string etag;
+
+ // Is continuing a download.
+ bool continued_download;
+
+ // Server error code, if any.
+ InterruptReason server_interrupt_reason;
+
// True if we should display the 'save as...' UI and prompt the user
// for the download location.
- // False if the UI should be supressed and the download performed to the
+ // False if the UI should be suppressed and the download performed to the
// default location.
bool prompt_user_for_save_location;

Powered by Google App Engine
This is Rietveld 408576698