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

Unified Diff: content/browser/download/download_file_impl.h

Issue 2750713003: Add UMA for estimating disk bandwidth and the time saved with parallel download (Closed)
Patch Set: address 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/download_file.h ('k') | content/browser/download/download_file_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_file_impl.h
diff --git a/content/browser/download/download_file_impl.h b/content/browser/download/download_file_impl.h
index 2a68ca9e4ead53ea9d8d3bf030fd09e2250f98ec..72c4d7ecf3380acdd4a4d10d728a9f7c1018ed70 100644
--- a/content/browser/download/download_file_impl.h
+++ b/content/browser/download/download_file_impl.h
@@ -71,6 +71,7 @@ class CONTENT_EXPORT DownloadFileImpl : public DownloadFile {
void Cancel() override;
const base::FilePath& FullPath() const override;
bool InProgress() const override;
+ void WasPaused() override;
protected:
// For test class overrides.
@@ -239,6 +240,13 @@ class CONTENT_EXPORT DownloadFileImpl : public DownloadFile {
base::TimeDelta disk_writes_time_;
base::TimeTicks download_start_;
RateEstimator rate_estimator_;
+ int num_active_streams_;
+ bool record_stream_bandwidth_;
+ base::TimeTicks last_update_time_;
+ size_t bytes_seen_with_parallel_streams_;
+ size_t bytes_seen_without_parallel_streams_;
+ base::TimeDelta download_time_with_parallel_streams_;
+ base::TimeDelta download_time_without_parallel_streams_;
std::vector<DownloadItem::ReceivedSlice> received_slices_;
« no previous file with comments | « content/browser/download/download_file.h ('k') | content/browser/download/download_file_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698