Chromium Code Reviews| 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; |
|
xingliu
2017/02/28 22:36:00
This is called every 0.5 second, is received_slice
qinmin
2017/02/28 22:38:21
yes, we need to keep the history db up-to-date.
|
| virtual void DestinationError( |
| DownloadInterruptReason reason, |