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

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

Issue 2722503006: Add slice information to DownloadDestinationObserver::DestinationUpdate(). (Closed)
Patch Set: rebase 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
« no previous file with comments | « no previous file | content/browser/download/download_file_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_destination_observer.h
diff --git a/content/browser/download/download_destination_observer.h b/content/browser/download/download_destination_observer.h
index 5bde275134dee05b73316728590395d0707a9385..7fb6297b63b5efc9a7ad1c9d18d9d9fff27f190b 100644
--- a/content/browser/download/download_destination_observer.h
+++ b/content/browser/download/download_destination_observer.h
@@ -11,6 +11,7 @@
#include <string>
#include "content/public/browser/download_interrupt_reasons.h"
+#include "content/public/browser/download_item.h"
#include "crypto/secure_hash.h"
namespace content {
@@ -27,8 +28,10 @@ namespace content {
// Note that this interface does not deal with cross-thread lifetime issues.
class DownloadDestinationObserver {
public:
- virtual void DestinationUpdate(int64_t bytes_so_far,
- int64_t bytes_per_sec) = 0;
+ virtual void DestinationUpdate(
+ int64_t bytes_so_far,
+ int64_t bytes_per_sec,
+ const std::vector<DownloadItem::ReceivedSlice>& received_slices) = 0;
virtual void DestinationError(
DownloadInterruptReason reason,
« no previous file with comments | « no previous file | content/browser/download/download_file_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698