| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/url_request/test_url_fetcher_factory.h" | 5 #include "net/url_request/test_url_fetcher_factory.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 int TestURLFetcher::GetMaxRetries() const { | 118 int TestURLFetcher::GetMaxRetries() const { |
| 119 return fake_max_retries_; | 119 return fake_max_retries_; |
| 120 } | 120 } |
| 121 | 121 |
| 122 base::TimeDelta TestURLFetcher::GetBackoffDelay() const { | 122 base::TimeDelta TestURLFetcher::GetBackoffDelay() const { |
| 123 return fake_backoff_delay_; | 123 return fake_backoff_delay_; |
| 124 } | 124 } |
| 125 | 125 |
| 126 void TestURLFetcher::SaveResponseToFileAtPath( | 126 void TestURLFetcher::SaveResponseToFileAtPath( |
| 127 const FilePath& file_path, | 127 const FilePath& file_path, |
| 128 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) { | 128 scoped_refptr<base::TaskRunner> file_task_runner) { |
| 129 } | 129 } |
| 130 | 130 |
| 131 void TestURLFetcher::SaveResponseToTemporaryFile( | 131 void TestURLFetcher::SaveResponseToTemporaryFile( |
| 132 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) { | 132 scoped_refptr<base::TaskRunner> file_task_runner) { |
| 133 } | 133 } |
| 134 | 134 |
| 135 HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const { | 135 HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const { |
| 136 return fake_response_headers_; | 136 return fake_response_headers_; |
| 137 } | 137 } |
| 138 | 138 |
| 139 HostPortPair TestURLFetcher::GetSocketAddress() const { | 139 HostPortPair TestURLFetcher::GetSocketAddress() const { |
| 140 NOTIMPLEMENTED(); | 140 NOTIMPLEMENTED(); |
| 141 return HostPortPair(); | 141 return HostPortPair(); |
| 142 } | 142 } |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 | 355 |
| 356 URLFetcher* URLFetcherImplFactory::CreateURLFetcher( | 356 URLFetcher* URLFetcherImplFactory::CreateURLFetcher( |
| 357 int id, | 357 int id, |
| 358 const GURL& url, | 358 const GURL& url, |
| 359 URLFetcher::RequestType request_type, | 359 URLFetcher::RequestType request_type, |
| 360 URLFetcherDelegate* d) { | 360 URLFetcherDelegate* d) { |
| 361 return new URLFetcherImpl(url, request_type, d); | 361 return new URLFetcherImpl(url, request_type, d); |
| 362 } | 362 } |
| 363 | 363 |
| 364 } // namespace net | 364 } // namespace net |
| OLD | NEW |