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

Unified Diff: content/common/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: Created 9 years, 6 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 | « no previous file | content/common/url_fetcher.cc » ('j') | content/common/url_fetcher.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/url_fetcher.h
===================================================================
--- content/common/url_fetcher.h (revision 91118)
+++ content/common/url_fetcher.h (working copy)
@@ -46,7 +46,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();
@@ -193,14 +193,11 @@
// 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.
-#if defined(UNIT_TEST)
- void set_backoff_delay(base::TimeDelta backoff_delay) {
- backoff_delay_ = backoff_delay;
- }
-#endif // defined(UNIT_TEST)
+ // Intended for testing.
+ void set_backoff_delay(base::TimeDelta backoff_delay);
willchan no longer on Chromium 2011/06/30 15:50:24 joi@, Who's still using this? It looks a bit usele
wtc 2011/06/30 21:36:02 set_backoff_delay() is only used by chrome/browser
// 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().
@@ -306,9 +303,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 | « no previous file | content/common/url_fetcher.cc » ('j') | content/common/url_fetcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698