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

Unified Diff: content/browser/renderer_host/buffered_resource_handler.cc

Issue 9296012: Hooked up NetLog to DownloadItem, DownloadFile, and FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Randy's comments. 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/renderer_host/buffered_resource_handler.cc
diff --git a/content/browser/renderer_host/buffered_resource_handler.cc b/content/browser/renderer_host/buffered_resource_handler.cc
index 5f59bb7c26e1a75d4ca54b5fe50c92afe41e524e..60c3034319a3d563c3e9c6b555b07d93c9fff826 100644
--- a/content/browser/renderer_host/buffered_resource_handler.cc
+++ b/content/browser/renderer_host/buffered_resource_handler.cc
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/string_util.h"
+#include "content/browser/download/download_net_log_parameters.h"
#include "content/browser/download/download_resource_handler.h"
#include "content/browser/download/download_stats.h"
#include "content/browser/download/download_types.h"
@@ -26,6 +27,7 @@
#include "net/base/mime_sniffer.h"
#include "net/base/mime_util.h"
#include "net/base/net_errors.h"
+#include "net/base/net_log.h"
#include "net/http/http_content_disposition.h"
#include "net/http/http_response_headers.h"
#include "webkit/plugins/webplugininfo.h"
@@ -303,12 +305,17 @@ bool BufferedResourceHandler::CompleteResponseStarted(int request_id) {
info->set_is_download(true);
+ net::BoundNetLog bound_net_log =
+ net::BoundNetLog::Make(request_->net_log().net_log(),
+ net::NetLog::SOURCE_DOWNLOAD);
+
scoped_refptr<ResourceHandler> handler(
new DownloadResourceHandler(host_,
info->child_id(),
info->route_id(),
info->request_id(),
request_->url(),
+ bound_net_log,
host_->download_file_manager(),
request_,
DownloadResourceHandler::OnStartedCallback(),

Powered by Google App Engine
This is Rietveld 408576698