| 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 "content/test/test_url_fetcher_factory.h" | 5 #include "content/test/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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 | 97 |
| 98 int TestURLFetcher::GetMaxRetries() const { | 98 int TestURLFetcher::GetMaxRetries() const { |
| 99 return fake_max_retries_; | 99 return fake_max_retries_; |
| 100 } | 100 } |
| 101 | 101 |
| 102 base::TimeDelta TestURLFetcher::GetBackoffDelay() const { | 102 base::TimeDelta TestURLFetcher::GetBackoffDelay() const { |
| 103 return fake_backoff_delay_; | 103 return fake_backoff_delay_; |
| 104 } | 104 } |
| 105 | 105 |
| 106 void TestURLFetcher::SaveResponseToFileAtPath( |
| 107 const FilePath& file_path, |
| 108 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) { |
| 109 } |
| 110 |
| 106 void TestURLFetcher::SaveResponseToTemporaryFile( | 111 void TestURLFetcher::SaveResponseToTemporaryFile( |
| 107 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) { | 112 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) { |
| 108 } | 113 } |
| 109 | 114 |
| 110 net::HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const { | 115 net::HttpResponseHeaders* TestURLFetcher::GetResponseHeaders() const { |
| 111 return fake_response_headers_; | 116 return fake_response_headers_; |
| 112 } | 117 } |
| 113 | 118 |
| 114 net::HostPortPair TestURLFetcher::GetSocketAddress() const { | 119 net::HostPortPair TestURLFetcher::GetSocketAddress() const { |
| 115 NOTIMPLEMENTED(); | 120 NOTIMPLEMENTED(); |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 325 |
| 321 URLFetcherImplFactory::~URLFetcherImplFactory() {} | 326 URLFetcherImplFactory::~URLFetcherImplFactory() {} |
| 322 | 327 |
| 323 content::URLFetcher* URLFetcherImplFactory::CreateURLFetcher( | 328 content::URLFetcher* URLFetcherImplFactory::CreateURLFetcher( |
| 324 int id, | 329 int id, |
| 325 const GURL& url, | 330 const GURL& url, |
| 326 content::URLFetcher::RequestType request_type, | 331 content::URLFetcher::RequestType request_type, |
| 327 content::URLFetcherDelegate* d) { | 332 content::URLFetcherDelegate* d) { |
| 328 return new URLFetcherImpl(url, request_type, d); | 333 return new URLFetcherImpl(url, request_type, d); |
| 329 } | 334 } |
| OLD | NEW |