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

Unified Diff: content/browser/download/save_item.cc

Issue 233723002: Workarounding fix for save complete page problems. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « content/browser/download/save_item.h ('k') | content/browser/download/save_package.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/save_item.cc
diff --git a/content/browser/download/save_item.cc b/content/browser/download/save_item.cc
index 9e516204202074978e14e03f609ce24bc83f0b50..9d962036363832b4d60ca16f107cd8bbe9d19890 100644
--- a/content/browser/download/save_item.cc
+++ b/content/browser/download/save_item.cc
@@ -25,6 +25,7 @@ SaveItem::SaveItem(const GURL& url,
state_(WAIT_START),
has_final_name_(false),
is_success_(false),
+ last_data_received_(false),
save_source_(save_source),
package_(package) {
DCHECK(package);
@@ -130,4 +131,9 @@ void SaveItem::SetTotalBytes(int64 total_bytes) {
total_bytes_ = total_bytes;
}
+void SaveItem::SetLastDataReceived() {
+ DCHECK_EQ(state_, IN_PROGRESS);
+ last_data_received_ = true;
+}
+
} // namespace content
« no previous file with comments | « content/browser/download/save_item.h ('k') | content/browser/download/save_package.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698