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

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

Issue 26230003: net: Allow URLFetcher users to inject custom URLFetcherResponseWriter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win7_aura compile error Created 7 years, 2 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 | « net/url_request/url_fetcher.h ('k') | net/url_request/url_fetcher_core.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_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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::TaskRunner> file_task_runner);
101 void SaveResponseToTemporaryFile( 101 void SaveResponseToTemporaryFile(
102 scoped_refptr<base::TaskRunner> file_task_runner); 102 scoped_refptr<base::TaskRunner> file_task_runner);
103 void SaveResponseWithWriter(
104 scoped_ptr<URLFetcherResponseWriter> response_writer);
103 HttpResponseHeaders* GetResponseHeaders() const; 105 HttpResponseHeaders* GetResponseHeaders() const;
104 HostPortPair GetSocketAddress() const; 106 HostPortPair GetSocketAddress() const;
105 bool WasFetchedViaProxy() const; 107 bool WasFetchedViaProxy() const;
106 const GURL& GetOriginalURL() const; 108 const GURL& GetOriginalURL() const;
107 const GURL& GetURL() const; 109 const GURL& GetURL() const;
108 const URLRequestStatus& GetStatus() const; 110 const URLRequestStatus& GetStatus() const;
109 int GetResponseCode() const; 111 int GetResponseCode() const;
110 const ResponseCookies& GetCookies() const; 112 const ResponseCookies& GetCookies() const;
111 // Reports that the received content was malformed (i.e. failed parsing 113 // Reports that the received content was malformed (i.e. failed parsing
112 // or validation). This makes the throttling logic that does exponential 114 // or validation). This makes the throttling logic that does exponential
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 base::debug::StackTrace stack_trace_; 318 base::debug::StackTrace stack_trace_;
317 319
318 static base::LazyInstance<Registry> g_registry; 320 static base::LazyInstance<Registry> g_registry;
319 321
320 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); 322 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore);
321 }; 323 };
322 324
323 } // namespace net 325 } // namespace net
324 326
325 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ 327 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher.h ('k') | net/url_request/url_fetcher_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698