| OLD | NEW |
| 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" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // Finch configuration utilities. | 28 // Finch configuration utilities. |
| 29 // | 29 // |
| 30 // Get the minimum slice size to use parallel download from finch configuration. | 30 // Get the minimum slice size to use parallel download from finch configuration. |
| 31 // A slice won't be further chunked into smaller slices if the size is less | 31 // A slice won't be further chunked into smaller slices if the size is less |
| 32 // than the minimum size. | 32 // than the minimum size. |
| 33 CONTENT_EXPORT int64_t GetMinSliceSizeConfig(); | 33 CONTENT_EXPORT int64_t GetMinSliceSizeConfig(); |
| 34 | 34 |
| 35 // Get the request count for parallel download from finch configuration. | 35 // Get the request count for parallel download from finch configuration. |
| 36 CONTENT_EXPORT int GetParallelRequestCountConfig(); | 36 CONTENT_EXPORT int GetParallelRequestCountConfig(); |
| 37 | 37 |
| 38 // Get the time delay to send parallel requests after the response of original |
| 39 // request is handled. |
| 40 CONTENT_EXPORT base::TimeDelta GetParallelRequestDelayConfig(); |
| 41 |
| 38 } // namespace content | 42 } // namespace content |
| 39 | 43 |
| 40 #endif // CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ | 44 #endif // CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ |
| OLD | NEW |