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

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

Issue 9296012: Hooked up NetLog to DownloadItem, DownloadFile, and FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with parent Created 8 years, 11 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_resource_handler.h
diff --git a/content/browser/download/download_resource_handler.h b/content/browser/download/download_resource_handler.h
index e6ad33c27987524911cfa352d6e26678afb33bd8..e68e7acfb5a8192df634b5e10a7f6ed5a7b314fd 100644
--- a/content/browser/download/download_resource_handler.h
+++ b/content/browser/download/download_resource_handler.h
@@ -16,6 +16,7 @@
#include "content/public/browser/download_id.h"
#include "content/public/browser/global_request_id.h"
#include "net/base/net_errors.h"
+#include "net/base/net_log.h"
class DownloadFileManager;
class DownloadRequestHandle;
@@ -44,6 +45,7 @@ class DownloadResourceHandler : public ResourceHandler {
int render_view_id,
int request_id,
const GURL& url,
+ const net::BoundNetLog& bound_net_log,
DownloadFileManager* download_file_manager,
net::URLRequest* request,
const OnStartedCallback& started_cb,
@@ -127,6 +129,8 @@ class DownloadResourceHandler : public ResourceHandler {
int64 bytes_read_;
std::string accept_ranges_;
+ net::BoundNetLog bound_net_log_;
+
static const int kReadBufSize = 32768; // bytes
static const int kThrottleTimeMs = 200; // milliseconds

Powered by Google App Engine
This is Rietveld 408576698