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

Unified Diff: content/test/net/url_request_slow_http_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_slow_http_job.h ('k') | net/proxy/proxy_script_fetcher_impl_unittest.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_http_job.cc
diff --git a/content/test/net/url_request_slow_http_job.cc b/content/test/net/url_request_slow_http_job.cc
index 7aa6001a3e97f3b1f4ee9d33ddccc2ae45037904..b5d30aa4d4194b0fd69f440b413b03b9b9729aa8 100644
--- a/content/test/net/url_request_slow_http_job.cc
+++ b/content/test/net/url_request_slow_http_job.cc
@@ -27,9 +27,11 @@ const int URLRequestSlowHTTPJob::kDelayMs = 1000;
using base::TimeDelta;
// static
-net::URLRequestJob* URLRequestSlowHTTPJob::Factory(net::URLRequest* request,
- const std::string& scheme) {
- return new URLRequestSlowHTTPJob(request,
+net::URLRequestJob* URLRequestSlowHTTPJob::Factory(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate,
+ const std::string& scheme) {
+ return new URLRequestSlowHTTPJob(request, network_delegate,
GetOnDiskPath(BasePath(), request, scheme));
}
@@ -54,9 +56,11 @@ GURL URLRequestSlowHTTPJob::GetMockUrl(const FilePath& path) {
return GURL(url);
}
-URLRequestSlowHTTPJob::URLRequestSlowHTTPJob(net::URLRequest* request,
- const FilePath& file_path)
- : URLRequestMockHTTPJob(request, file_path) { }
+URLRequestSlowHTTPJob::URLRequestSlowHTTPJob(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate,
+ const FilePath& file_path)
+ : URLRequestMockHTTPJob(request, network_delegate, file_path) { }
void URLRequestSlowHTTPJob::Start() {
delay_timer_.Start(FROM_HERE, TimeDelta::FromMilliseconds(kDelayMs), this,
« no previous file with comments | « content/test/net/url_request_slow_http_job.h ('k') | net/proxy/proxy_script_fetcher_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698