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

Unified Diff: content/test/net/url_request_slow_download_job.cc

Issue 10534100: Decouple URLRequestJob from URLRequestContext; access NetworkDelegate as a contructor parameter. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merged with latest sync Created 8 years, 6 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/test/net/url_request_failed_job.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/net/url_request_slow_download_job.cc
diff --git a/content/test/net/url_request_slow_download_job.cc b/content/test/net/url_request_slow_download_job.cc
index 0af0441d4f8910643dc77771caeff837143a3038..5fc435dfa34b42b0bcc691645ad291b054980e12 100644
--- a/content/test/net/url_request_slow_download_job.cc
+++ b/content/test/net/url_request_slow_download_job.cc
@@ -15,6 +15,7 @@
#include "net/base/io_buffer.h"
#include "net/http/http_response_headers.h"
#include "net/url_request/url_request.h"
+#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_filter.h"
using content::BrowserThread;
@@ -79,7 +80,7 @@ void URLRequestSlowDownloadJob::FinishPendingRequests() {
}
URLRequestSlowDownloadJob::URLRequestSlowDownloadJob(net::URLRequest* request)
- : net::URLRequestJob(request),
+ : net::URLRequestJob(request, request->context()->network_delegate()),
bytes_already_sent_(0),
should_finish_download_(false),
buffer_size_(0),
« no previous file with comments | « content/test/net/url_request_failed_job.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698