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

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

Issue 2806923002: Don't create parallel request if download is about to complete (Closed)
Patch Set: add UMA and finch Created 3 years, 8 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/browser/download/download_create_info.h" 10 #include "content/browser/download/download_create_info.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // than the minimum size. 44 // than the minimum size.
45 CONTENT_EXPORT int64_t GetMinSliceSizeConfig(); 45 CONTENT_EXPORT int64_t GetMinSliceSizeConfig();
46 46
47 // Get the request count for parallel download from finch configuration. 47 // Get the request count for parallel download from finch configuration.
48 CONTENT_EXPORT int GetParallelRequestCountConfig(); 48 CONTENT_EXPORT int GetParallelRequestCountConfig();
49 49
50 // Get the time delay to send parallel requests after the response of original 50 // Get the time delay to send parallel requests after the response of original
51 // request is handled. 51 // request is handled.
52 CONTENT_EXPORT base::TimeDelta GetParallelRequestDelayConfig(); 52 CONTENT_EXPORT base::TimeDelta GetParallelRequestDelayConfig();
53 53
54 // Get the required remaining time before creating parallel requests.
55 CONTENT_EXPORT base::TimeDelta GetParallelRequestRemainingTimeConfig();
56
54 // Print the states of received slices for debugging. 57 // Print the states of received slices for debugging.
55 CONTENT_EXPORT void DebugSlicesInfo(const DownloadItem::ReceivedSlices& slices); 58 CONTENT_EXPORT void DebugSlicesInfo(const DownloadItem::ReceivedSlices& slices);
56 59
57 } // namespace content 60 } // namespace content
58 61
59 #endif // CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ 62 #endif // CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_
OLDNEW
« no previous file with comments | « content/browser/download/parallel_download_job_unittest.cc ('k') | content/browser/download/parallel_download_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698