summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/geolocation/simple_geolocation_request.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/geolocation/simple_geolocation_request.h')
-rw-r--r--chrome/browser/chromeos/geolocation/simple_geolocation_request.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/geolocation/simple_geolocation_request.h b/chrome/browser/chromeos/geolocation/simple_geolocation_request.h
index 3cc47e3..f6baf4d 100644
--- a/chrome/browser/chromeos/geolocation/simple_geolocation_request.h
+++ b/chrome/browser/chromeos/geolocation/simple_geolocation_request.h
@@ -55,6 +55,16 @@ class SimpleGeolocationRequest : private net::URLFetcherDelegate {
// request will be silently cancelled.
void MakeRequest(const ResponseCallback& callback);
+ void set_retry_sleep_on_server_error_for_testing(
+ const base::TimeDelta value) {
+ retry_sleep_on_server_error_ = value;
+ }
+
+ void set_retry_sleep_on_bad_response_for_testing(
+ const base::TimeDelta value) {
+ retry_sleep_on_bad_response_ = value;
+ }
+
private:
// net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
@@ -86,6 +96,10 @@ class SimpleGeolocationRequest : private net::URLFetcherDelegate {
// When request was actually started.
base::Time request_started_at_;
+ base::TimeDelta retry_sleep_on_server_error_;
+
+ base::TimeDelta retry_sleep_on_bad_response_;
+
const base::TimeDelta timeout_;
// Pending retry.