| 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,
|
|
|