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

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

Issue 63923002: net: Use SequencedTaskRunner for URLFetcherResponseWriter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add include Created 7 years, 1 month 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
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_URL_FETCHER_CORE_H_ 5 #ifndef NET_URL_REQUEST_URL_FETCHER_CORE_H_
6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_ 6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const void* key, 90 const void* key,
91 const URLFetcher::CreateDataCallback& create_data_callback); 91 const URLFetcher::CreateDataCallback& create_data_callback);
92 void SetStopOnRedirect(bool stop_on_redirect); 92 void SetStopOnRedirect(bool stop_on_redirect);
93 void SetAutomaticallyRetryOn5xx(bool retry); 93 void SetAutomaticallyRetryOn5xx(bool retry);
94 void SetMaxRetriesOn5xx(int max_retries); 94 void SetMaxRetriesOn5xx(int max_retries);
95 int GetMaxRetriesOn5xx() const; 95 int GetMaxRetriesOn5xx() const;
96 base::TimeDelta GetBackoffDelay() const; 96 base::TimeDelta GetBackoffDelay() const;
97 void SetAutomaticallyRetryOnNetworkChanges(int max_retries); 97 void SetAutomaticallyRetryOnNetworkChanges(int max_retries);
98 void SaveResponseToFileAtPath( 98 void SaveResponseToFileAtPath(
99 const base::FilePath& file_path, 99 const base::FilePath& file_path,
100 scoped_refptr<base::TaskRunner> file_task_runner); 100 scoped_refptr<base::SequencedTaskRunner> file_task_runner);
101 void SaveResponseToTemporaryFile( 101 void SaveResponseToTemporaryFile(
102 scoped_refptr<base::TaskRunner> file_task_runner); 102 scoped_refptr<base::SequencedTaskRunner> file_task_runner);
103 void SaveResponseWithWriter( 103 void SaveResponseWithWriter(
104 scoped_ptr<URLFetcherResponseWriter> response_writer); 104 scoped_ptr<URLFetcherResponseWriter> response_writer);
105 HttpResponseHeaders* GetResponseHeaders() const; 105 HttpResponseHeaders* GetResponseHeaders() const;
106 HostPortPair GetSocketAddress() const; 106 HostPortPair GetSocketAddress() const;
107 bool WasFetchedViaProxy() const; 107 bool WasFetchedViaProxy() const;
108 const GURL& GetOriginalURL() const; 108 const GURL& GetOriginalURL() const;
109 const GURL& GetURL() const; 109 const GURL& GetURL() const;
110 const URLRequestStatus& GetStatus() const; 110 const URLRequestStatus& GetStatus() const;
111 int GetResponseCode() const; 111 int GetResponseCode() const;
112 const ResponseCookies& GetCookies() const; 112 const ResponseCookies& GetCookies() const;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 base::debug::StackTrace stack_trace_; 315 base::debug::StackTrace stack_trace_;
316 316
317 static base::LazyInstance<Registry> g_registry; 317 static base::LazyInstance<Registry> g_registry;
318 318
319 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); 319 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore);
320 }; 320 };
321 321
322 } // namespace net 322 } // namespace net
323 323
324 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ 324 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698