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

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

Issue 11464028: Introduce ERR_NETWORK_CHANGED and allow URLFetcher to automatically retry on that error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed nits Created 8 years 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 | « net/spdy/spdy_session_spdy3_unittest.cc ('k') | 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 HttpRequestHeaders* headers) const OVERRIDE; 99 HttpRequestHeaders* headers) const OVERRIDE;
100 virtual void SetRequestContext( 100 virtual void SetRequestContext(
101 URLRequestContextGetter* request_context_getter) OVERRIDE; 101 URLRequestContextGetter* request_context_getter) OVERRIDE;
102 virtual void SetFirstPartyForCookies( 102 virtual void SetFirstPartyForCookies(
103 const GURL& first_party_for_cookies) OVERRIDE; 103 const GURL& first_party_for_cookies) OVERRIDE;
104 virtual void SetURLRequestUserData( 104 virtual void SetURLRequestUserData(
105 const void* key, 105 const void* key,
106 const CreateDataCallback& create_data_callback) OVERRIDE; 106 const CreateDataCallback& create_data_callback) OVERRIDE;
107 virtual void SetStopOnRedirect(bool stop_on_redirect) OVERRIDE; 107 virtual void SetStopOnRedirect(bool stop_on_redirect) OVERRIDE;
108 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; 108 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE;
109 virtual void SetMaxRetries(int max_retries) OVERRIDE; 109 virtual void SetMaxRetriesOn5xx(int max_retries) OVERRIDE;
110 virtual int GetMaxRetries() const OVERRIDE; 110 virtual int GetMaxRetriesOn5xx() const OVERRIDE;
111 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; 111 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE;
112 virtual void SetAutomaticallyRetryOnNetworkChanges(int max_retries) OVERRIDE;
112 virtual void SaveResponseToFileAtPath( 113 virtual void SaveResponseToFileAtPath(
113 const FilePath& file_path, 114 const FilePath& file_path,
114 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; 115 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE;
115 virtual void SaveResponseToTemporaryFile( 116 virtual void SaveResponseToTemporaryFile(
116 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; 117 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE;
117 virtual HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; 118 virtual HttpResponseHeaders* GetResponseHeaders() const OVERRIDE;
118 virtual HostPortPair GetSocketAddress() const OVERRIDE; 119 virtual HostPortPair GetSocketAddress() const OVERRIDE;
119 virtual bool WasFetchedViaProxy() const OVERRIDE; 120 virtual bool WasFetchedViaProxy() const OVERRIDE;
120 virtual void Start() OVERRIDE; 121 virtual void Start() OVERRIDE;
121 122
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 int id, 330 int id,
330 const GURL& url, 331 const GURL& url,
331 URLFetcher::RequestType request_type, 332 URLFetcher::RequestType request_type,
332 URLFetcherDelegate* d) OVERRIDE; 333 URLFetcherDelegate* d) OVERRIDE;
333 334
334 }; 335 };
335 336
336 } // namespace net 337 } // namespace net
337 338
338 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ 339 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_spdy3_unittest.cc ('k') | net/url_request/test_url_fetcher_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698