Index: chrome/common/net/url_fetcher_protect.h |
diff --git a/chrome/common/net/url_fetcher_protect.h b/chrome/common/net/url_fetcher_protect.h |
index 95ecf97f58058a1c6759a093f363d3539465d551..980353cc73517727143ef859673beb14e15a6671 100644 |
--- a/chrome/common/net/url_fetcher_protect.h |
+++ b/chrome/common/net/url_fetcher_protect.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
// |
@@ -61,6 +61,11 @@ class URLFetcherProtectEntry { |
return max_retries_; |
} |
+ // Sets the max retries. |
+ void SetMaxRetries(int max_retries) { |
+ max_retries_ = max_retries; |
+ } |
+ |
private: |
// When a request comes, calculate the release time for it. |
// Returns the backoff time before sending. |