| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_PARAMETERS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_PARAMETERS_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_PARAMETERS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_PARAMETERS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // time before doing so. | 28 // time before doing so. |
| 29 base::TimeDelta initial_retry_delay; | 29 base::TimeDelta initial_retry_delay; |
| 30 | 30 |
| 31 // The factor by which retry delay increases. The retry time is determined by: | 31 // The factor by which retry delay increases. The retry time is determined by: |
| 32 // initial_retry_delay * pow(retry_delay_factor, |attempts|-1). | 32 // initial_retry_delay * pow(retry_delay_factor, |attempts|-1). |
| 33 int retry_delay_factor; | 33 int retry_delay_factor; |
| 34 | 34 |
| 35 // The minimum time to wait before waking the browser in case the browser | 35 // The minimum time to wait before waking the browser in case the browser |
| 36 // closes mid-sync. | 36 // closes mid-sync. |
| 37 base::TimeDelta min_sync_recovery_time; | 37 base::TimeDelta min_sync_recovery_time; |
| 38 |
| 39 // The maximum amount of time that a sync event can run for. |
| 40 base::TimeDelta max_sync_event_duration; |
| 38 }; | 41 }; |
| 39 | 42 |
| 40 } // namespace content | 43 } // namespace content |
| 41 | 44 |
| 42 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_PARAMETERS_H_ | 45 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_PARAMETERS_H_ |
| OLD | NEW |