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

Side by Side Diff: content/browser/download/parallel_download_utils.h

Issue 2727143005: Change FindNextSliceToDownload() into FindSlicesToDownload() (Closed)
Patch Set: adding TODO and comments Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_
6 #define CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/browser/download_item.h" 11 #include "content/public/browser/download_item.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // Find the first gap in an array of received slices and return it as the next 15 // Given an array of slices that are received, returns an array of slices to
16 // slice to download. If not found, return a slice that is to the end of all 16 // download. |received_slices| must be ordered by offsets.
17 // slices. |received_slices| must be ordered by offsets. 17 CONTENT_EXPORT std::vector<DownloadItem::ReceivedSlice> FindSlicesToDownload(
18 CONTENT_EXPORT DownloadItem::ReceivedSlice FindNextSliceToDownload(
19 const std::vector<DownloadItem::ReceivedSlice>& received_slices); 18 const std::vector<DownloadItem::ReceivedSlice>& received_slices);
20 19
21 } // namespace content 20 } // namespace content
22 21
23 #endif // CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ 22 #endif // CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698