| Index: components/offline_pages/background/offliner_policy.h
|
| diff --git a/components/offline_pages/background/offliner_policy.h b/components/offline_pages/background/offliner_policy.h
|
| index 83abd4a4e058b9d082400353a7cbbbf248a29d04..05b03e7e6850be7c189a245390b6194eccaa614c 100644
|
| --- a/components/offline_pages/background/offliner_policy.h
|
| +++ b/components/offline_pages/background/offliner_policy.h
|
| @@ -9,7 +9,8 @@ namespace {
|
| const int kMaxStartedTries = 4;
|
| const int kMaxCompletedTries = 1;
|
| const int kBackgroundProcessingTimeBudgetSeconds = 170;
|
| -const int kSinglePageTimeLimitSeconds = 120;
|
| +const int kSinglePageTimeLimitWhenBackgroundScheduledSeconds = 120;
|
| +const int kSinglePageTimeLimitForImmediateLoadSeconds = 300;
|
| const int kRequestExpirationTimeInSeconds = 60 * 60 * 24 * 7;
|
| } // namespace
|
|
|
| @@ -86,9 +87,16 @@ class OfflinerPolicy {
|
| return kBackgroundProcessingTimeBudgetSeconds;
|
| }
|
|
|
| - // How long do we allow a page to load before giving up on it
|
| - int GetSinglePageTimeLimitInSeconds() const {
|
| - return kSinglePageTimeLimitSeconds;
|
| + // How long do we allow a page to load before giving up on it when
|
| + // background loading was scheduled.
|
| + int GetSinglePageTimeLimitWhenBackgroundScheduledInSeconds() const {
|
| + return kSinglePageTimeLimitWhenBackgroundScheduledSeconds;
|
| + }
|
| +
|
| + // How long do we allow a page to load before giving up on it when
|
| + // immediately background loading.
|
| + int GetSinglePageTimeLimitForImmediateLoadInSeconds() const {
|
| + return kSinglePageTimeLimitForImmediateLoadSeconds;
|
| }
|
|
|
| // How long we allow requests to remain in the system before giving up.
|
|
|