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

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

Issue 2722503006: Add slice information to DownloadDestinationObserver::DestinationUpdate(). (Closed)
Patch Set: Created 3 years, 10 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
Index: content/browser/download/download_item_impl.h
diff --git a/content/browser/download/download_item_impl.h b/content/browser/download/download_item_impl.h
index 47a0b0b6f4fcca54e58ef085d1765eff0828a548..f5a1c3408320a116aa3f17b26be5feafce2036b8 100644
--- a/content/browser/download/download_item_impl.h
+++ b/content/browser/download/download_item_impl.h
@@ -222,7 +222,10 @@ class CONTENT_EXPORT DownloadItemImpl
virtual void MarkAsComplete();
// DownloadDestinationObserver
- void DestinationUpdate(int64_t bytes_so_far, int64_t bytes_per_sec) override;
+ void DestinationUpdate(
+ int64_t bytes_so_far,
+ int64_t bytes_per_sec,
+ const std::vector<DownloadItem::ReceivedSlice>& received_slices) override;
void DestinationError(
DownloadInterruptReason reason,
int64_t bytes_so_far,
@@ -452,7 +455,10 @@ class CONTENT_EXPORT DownloadItemImpl
std::unique_ptr<crypto::SecureHash> hash_state,
DownloadInterruptReason reason);
- void UpdateProgress(int64_t bytes_so_far, int64_t bytes_per_sec);
+ void UpdateProgress(
+ int64_t bytes_so_far,
+ int64_t bytes_per_sec,
+ const std::vector<DownloadItem::ReceivedSlice>& received_slices);
// Set |hash_| and |hash_state_| based on |hash_state|.
void SetHashState(std::unique_ptr<crypto::SecureHash> hash_state);

Powered by Google App Engine
This is Rietveld 408576698