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

Unified Diff: content/browser/download/download_job_impl.cc

Issue 2823273004: Add new UMA stats for parallelizable download (Closed)
Patch Set: fix test 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/download_job_impl.h ('k') | content/browser/download/download_stats.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_job_impl.cc
diff --git a/content/browser/download/download_job_impl.cc b/content/browser/download/download_job_impl.cc
index c5239e867cc6b590e057bd5a3995a6d62778f6dd..82b6ed86c648921a6ed0acd518ee96f9369365bb 100644
--- a/content/browser/download/download_job_impl.cc
+++ b/content/browser/download/download_job_impl.cc
@@ -10,8 +10,11 @@ namespace content {
DownloadJobImpl::DownloadJobImpl(
DownloadItemImpl* download_item,
- std::unique_ptr<DownloadRequestHandleInterface> request_handle)
- : DownloadJob(download_item), request_handle_(std::move(request_handle)) {}
+ std::unique_ptr<DownloadRequestHandleInterface> request_handle,
+ bool is_parallizable)
+ : DownloadJob(download_item),
+ request_handle_(std::move(request_handle)),
+ is_parallizable_(is_parallizable) {}
DownloadJobImpl::~DownloadJobImpl() = default;
@@ -43,4 +46,8 @@ WebContents* DownloadJobImpl::GetWebContents() const {
return request_handle_ ? request_handle_->GetWebContents() : nullptr;
}
+bool DownloadJobImpl::IsParallelizable() const {
+ return is_parallizable_;
+}
+
} // namespace content
« no previous file with comments | « content/browser/download/download_job_impl.h ('k') | content/browser/download/download_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698