| Index: content/browser/download/parallel_download_utils.h
|
| diff --git a/content/browser/download/parallel_download_utils.h b/content/browser/download/parallel_download_utils.h
|
| index 85a5d0b8af8921cafd5ad7506d3e5dab75952866..dc365945f8c9246f326e513a0adad62e0b8cf667 100644
|
| --- a/content/browser/download/parallel_download_utils.h
|
| +++ b/content/browser/download/parallel_download_utils.h
|
| @@ -7,11 +7,23 @@
|
|
|
| #include <vector>
|
|
|
| +#include "content/browser/download/download_create_info.h"
|
| #include "content/common/content_export.h"
|
| #include "content/public/browser/download_item.h"
|
|
|
| namespace content {
|
|
|
| +// Return if the download should be a parallel download.
|
| +CONTENT_EXPORT bool ShouldUseParallelDownload(
|
| + const DownloadCreateInfo& create_info);
|
| +
|
| +// Return the slices to download for the remaining content.
|
| +// This function chunks the content into slices.
|
| +CONTENT_EXPORT std::vector<DownloadItem::ReceivedSlice>
|
| +FindSlicesForRemainingContent(int64_t bytes_received,
|
| + int64_t total_bytes,
|
| + int request_count);
|
| +
|
| // Given an array of slices that are received, returns an array of slices to
|
| // download. |received_slices| must be ordered by offsets.
|
| CONTENT_EXPORT std::vector<DownloadItem::ReceivedSlice> FindSlicesToDownload(
|
|
|