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

Side by Side Diff: content/public/browser/background_sync_parameters.h

Issue 1536023002: [BackgroundSync] Add max sync event duration to BackgroundSyncParameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sync_time2
Patch Set: Rename a constant to match the others Created 4 years, 11 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698