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 #ifndef NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 5 #ifndef NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
6 #define NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 6 #define NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 int fake_response_code_; | 215 int fake_response_code_; |
216 ResponseCookies fake_cookies_; | 216 ResponseCookies fake_cookies_; |
217 ResponseDestinationType fake_response_destination_; | 217 ResponseDestinationType fake_response_destination_; |
218 std::string fake_response_string_; | 218 std::string fake_response_string_; |
219 base::FilePath fake_response_file_path_; | 219 base::FilePath fake_response_file_path_; |
220 bool fake_was_fetched_via_proxy_; | 220 bool fake_was_fetched_via_proxy_; |
221 scoped_refptr<HttpResponseHeaders> fake_response_headers_; | 221 scoped_refptr<HttpResponseHeaders> fake_response_headers_; |
222 HttpRequestHeaders fake_extra_request_headers_; | 222 HttpRequestHeaders fake_extra_request_headers_; |
223 int fake_max_retries_; | 223 int fake_max_retries_; |
224 base::TimeDelta fake_backoff_delay_; | 224 base::TimeDelta fake_backoff_delay_; |
| 225 scoped_ptr<URLFetcherResponseWriter> response_writer_; |
225 | 226 |
226 DISALLOW_COPY_AND_ASSIGN(TestURLFetcher); | 227 DISALLOW_COPY_AND_ASSIGN(TestURLFetcher); |
227 }; | 228 }; |
228 | 229 |
229 typedef TestURLFetcher::DelegateForTests TestURLFetcherDelegateForTests; | 230 typedef TestURLFetcher::DelegateForTests TestURLFetcherDelegateForTests; |
230 | 231 |
231 // Simple URLFetcherFactory method that creates TestURLFetchers. All fetchers | 232 // Simple URLFetcherFactory method that creates TestURLFetchers. All fetchers |
232 // are registered in a map by the id passed to the create method. | 233 // are registered in a map by the id passed to the create method. |
233 // Optionally, a fetcher may be automatically unregistered from the map upon | 234 // Optionally, a fetcher may be automatically unregistered from the map upon |
234 // its destruction. | 235 // its destruction. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 int id, | 456 int id, |
456 const GURL& url, | 457 const GURL& url, |
457 URLFetcher::RequestType request_type, | 458 URLFetcher::RequestType request_type, |
458 URLFetcherDelegate* d) OVERRIDE; | 459 URLFetcherDelegate* d) OVERRIDE; |
459 | 460 |
460 }; | 461 }; |
461 | 462 |
462 } // namespace net | 463 } // namespace net |
463 | 464 |
464 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 465 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
OLD | NEW |