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

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

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest merge Created 8 years, 4 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.h ('k') | content/test/net/url_request_mock_http_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/net/url_request_failed_job.cc
diff --git a/content/test/net/url_request_failed_job.cc b/content/test/net/url_request_failed_job.cc
index a9efd18eddf7c8d5521c852c82d3db769cb45379..028338627202cf792654bf9c7bc7bf1aa4874354 100644
--- a/content/test/net/url_request_failed_job.cc
+++ b/content/test/net/url_request_failed_job.cc
@@ -10,7 +10,6 @@
#include "base/string_number_conversions.h"
#include "net/base/net_errors.h"
#include "net/url_request/url_request.h"
-#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_filter.h"
namespace {
@@ -42,8 +41,9 @@ GURL GetMockUrl(const std::string& scheme, int net_error) {
} // namespace
URLRequestFailedJob::URLRequestFailedJob(net::URLRequest* request,
+ net::NetworkDelegate* network_delegate,
int net_error)
- : net::URLRequestJob(request, request->context()->network_delegate()),
+ : net::URLRequestJob(request, network_delegate),
net_error_(net_error),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {}
@@ -77,9 +77,12 @@ GURL URLRequestFailedJob::GetMockHttpsUrl(int net_error) {
}
// static
-net::URLRequestJob* URLRequestFailedJob::Factory(net::URLRequest* request,
+net::URLRequestJob* URLRequestFailedJob::Factory(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate,
const std::string& scheme) {
- return new URLRequestFailedJob(request, GetErrorCode(request));
+ return new URLRequestFailedJob(
+ request, network_delegate, GetErrorCode(request));
}
void URLRequestFailedJob::StartAsync() {
« no previous file with comments | « content/test/net/url_request_failed_job.h ('k') | content/test/net/url_request_mock_http_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698