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

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

Issue 2799333002: Clear the received slices in DownloadItemImpl when etag changed. (Closed)
Patch Set: Address the uma issue. 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
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | content/browser/download/download_file_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_file.h
diff --git a/content/browser/download/download_file.h b/content/browser/download/download_file.h
index cea23175752d648403c4a49729da452ced714430..224121a034b77a1073b4ec7923a1e9f6e94b83d4 100644
--- a/content/browser/download/download_file.h
+++ b/content/browser/download/download_file.h
@@ -14,6 +14,7 @@
#include "base/files/file_path.h"
#include "content/common/content_export.h"
#include "content/public/browser/download_interrupt_reasons.h"
+#include "content/public/browser/download_item.h"
class GURL;
@@ -46,7 +47,9 @@ class CONTENT_EXPORT DownloadFile {
// Upon completion, |callback| will be called on the UI
// thread as per the comment above, passing DOWNLOAD_INTERRUPT_REASON_NONE
// on success, or a network download interrupt reason on failure.
- virtual void Initialize(const InitializeCallback& callback) = 0;
+ virtual void Initialize(
+ const InitializeCallback& callback,
+ const DownloadItem::ReceivedSlices& received_slices) = 0;
// Add a byte stream reader to write into a slice of the file, used for
// parallel download. Called on the file thread.
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | content/browser/download/download_file_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698