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

Unified Diff: trunk/src/net/url_request/url_request_test_job.cc

Issue 196533013: Revert 256688 "Fix various issues in RedirectToFileResourceHandler." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 | « trunk/src/net/url_request/url_request_test_job.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/net/url_request/url_request_test_job.cc
===================================================================
--- trunk/src/net/url_request/url_request_test_job.cc (revision 256703)
+++ trunk/src/net/url_request/url_request_test_job.cc (working copy)
@@ -24,15 +24,6 @@
base::LazyInstance<URLRequestJobList>::Leaky
g_pending_jobs = LAZY_INSTANCE_INITIALIZER;
-class TestJobProtocolHandler : public URLRequestJobFactory::ProtocolHandler {
- public:
- // URLRequestJobFactory::ProtocolHandler implementation:
- virtual URLRequestJob* MaybeCreateJob(
- URLRequest* request, NetworkDelegate* network_delegate) const OVERRIDE {
- return new URLRequestTestJob(request, network_delegate);
- }
-};
-
} // namespace
// static getters for known URLs
@@ -107,9 +98,10 @@
}
// static
-URLRequestJobFactory::ProtocolHandler*
-URLRequestTestJob::CreateProtocolHandler() {
- return new TestJobProtocolHandler();
+URLRequestJob* URLRequestTestJob::Factory(URLRequest* request,
+ NetworkDelegate* network_delegate,
+ const std::string& scheme) {
+ return new URLRequestTestJob(request, network_delegate);
}
URLRequestTestJob::URLRequestTestJob(URLRequest* request,
« no previous file with comments | « trunk/src/net/url_request/url_request_test_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698