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

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

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rearranged structures for greater consistency. 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_types.h
diff --git a/content/browser/download/download_types.h b/content/browser/download/download_types.h
index f0153a58a74dd107b52cdd40b159aa8ccab76b81..e3ef2982a337d5691ffb9fd9c832359b49792b84 100644
--- a/content/browser/download/download_types.h
+++ b/content/browser/download/download_types.h
@@ -18,9 +18,18 @@ struct CONTENT_EXPORT DownloadSaveInfo {
~DownloadSaveInfo();
DownloadSaveInfo& operator=(const DownloadSaveInfo& info);
+ // This is usually the tentative final name, but not during resumption.
Randy Smith (Not in Mondays) 2011/11/22 17:37:49 nit: Specify what it is during resumption.
ahendrickson 2011/11/22 23:46:44 Done.
FilePath file_path;
+
linked_ptr<net::FileStream> file_stream;
+
string16 suggested_name;
+
+ // The file offset at which to start the download. May be 0.
+ size_t offset;
+
+ // The state of the hash at the start of the download. May be empty.
+ std::string hash_state;
};
#endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698