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

Unified Diff: content/common/net/url_fetcher.h

Issue 7282032: Move backoff_delay_ to the inner Core class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: set_backoff_delay has been renamed. Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/net/OWNERS ('k') | content/common/net/url_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/net/url_fetcher.h
===================================================================
--- content/common/net/url_fetcher.h (revision 105661)
+++ content/common/net/url_fetcher.h (working copy)
@@ -47,7 +47,7 @@
//
// Then, optionally set properties on this object, like the request context or
// extra headers:
-// fetcher->SetExtraRequestHeaders("X-Foo: bar");
+// fetcher->set_extra_request_headers("X-Foo: bar");
//
// Finally, start the request:
// fetcher->Start();
@@ -184,12 +184,10 @@
// Returns the back-off delay before the request will be retried,
// when a 5xx response was received.
- base::TimeDelta backoff_delay() const { return backoff_delay_; }
+ base::TimeDelta backoff_delay() const;
// Sets the back-off delay, allowing to mock 5xx requests in unit-tests.
- void set_backoff_delay_for_testing(base::TimeDelta backoff_delay) {
- backoff_delay_ = backoff_delay;
- }
+ void set_backoff_delay_for_testing(base::TimeDelta backoff_delay);
// By default, the response is saved in a string. Call this method to save the
// response to a temporary file instead. Must be called before Start().
@@ -315,9 +313,6 @@
static Factory* factory_;
- // Back-off time delay. 0 by default.
- base::TimeDelta backoff_delay_;
-
static bool g_interception_enabled;
DISALLOW_COPY_AND_ASSIGN(URLFetcher);
« no previous file with comments | « content/common/net/OWNERS ('k') | content/common/net/url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698