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

Side by Side Diff: net/url_request/test_url_fetcher_factory.h

Issue 151133002: libaddressinput - one less copy when downloading data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-up Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/url_request/test_url_fetcher_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/url_request/test_url_fetcher_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698