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

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

Issue 9296012: Hooked up NetLog to DownloadItem, DownloadFile, and FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk Created 8 years, 10 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
Index: content/browser/download/download_item_impl.cc
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index cdcd10ec26126b42c7addd6f4a7a3685e394a24b..03b1a0e29ed13bd1af96e41e27530db5259208bd 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -242,6 +242,19 @@ DownloadItemImpl::DownloadItemImpl(
delegate_->Attach();
Init(true /* actively downloading */,
download_net_logs::SRC_NEW_DOWNLOAD);
+
+ // Link the event sources.
+ bound_net_log_.AddEvent(
+ net::NetLog::TYPE_DOWNLOAD_URL_REQUEST,
+ make_scoped_refptr(new net::NetLogSourceParameter(
+ "source_dependency",
+ info.request_bound_net_log.source())));
+
+ info.request_bound_net_log.AddEvent(
+ net::NetLog::TYPE_DOWNLOAD_STARTED,
+ make_scoped_refptr(new net::NetLogSourceParameter(
+ "source_dependency",
+ bound_net_log_.source())));
}
// Constructing for the "Save Page As..." feature:
« no previous file with comments | « content/browser/download/download_file_unittest.cc ('k') | content/browser/download/download_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698