Index: content/test/net/url_request_mock_http_job.cc |
diff --git a/content/test/net/url_request_mock_http_job.cc b/content/test/net/url_request_mock_http_job.cc |
index 805e9859020132d5a4c588ec1e6a0ef0bfe3e561..3b5401a7bd1235c8b3a1763a30d8a0bd7ff02135 100644 |
--- a/content/test/net/url_request_mock_http_job.cc |
+++ b/content/test/net/url_request_mock_http_job.cc |
@@ -12,6 +12,7 @@ |
#include "content/public/common/url_constants.h" |
#include "net/base/net_util.h" |
#include "net/http/http_response_headers.h" |
+#include "net/url_request/url_request.h" |
#include "net/url_request/url_request_filter.h" |
const char kMockHostname[] = "mock.http"; |
@@ -30,9 +31,12 @@ FilePath& BasePath() { |
} // namespace |
// static |
-net::URLRequestJob* URLRequestMockHTTPJob::Factory(net::URLRequest* request, |
- const std::string& scheme) { |
+net::URLRequestJob* URLRequestMockHTTPJob::Factory( |
+ net::URLRequest* request, |
+ net::NetworkDelegate* network_delegate, |
+ const std::string& scheme) { |
return new URLRequestMockHTTPJob(request, |
+ network_delegate, |
GetOnDiskPath(BasePath(), request, scheme)); |
} |
@@ -80,9 +84,11 @@ FilePath URLRequestMockHTTPJob::GetOnDiskPath(const FilePath& base_path, |
return file_path; |
} |
-URLRequestMockHTTPJob::URLRequestMockHTTPJob(net::URLRequest* request, |
- const FilePath& file_path) |
- : net::URLRequestFileJob(request, file_path) { } |
+URLRequestMockHTTPJob::URLRequestMockHTTPJob( |
+ net::URLRequest* request, |
+ net::NetworkDelegate* network_delegate, |
+ const FilePath& file_path) |
+ : net::URLRequestFileJob(request, network_delegate, file_path) { } |
// Public virtual version. |
void URLRequestMockHTTPJob::GetResponseInfo(net::HttpResponseInfo* info) { |