| Index: components/network_time/network_time_tracker.h
|
| diff --git a/components/network_time/network_time_tracker.h b/components/network_time/network_time_tracker.h
|
| index e296043db1659551c3256e60f4141a09c2d0e9ee..ea5bbc5b91ab26e7235f095a9bc0fcbabae5c522 100644
|
| --- a/components/network_time/network_time_tracker.h
|
| +++ b/components/network_time/network_time_tracker.h
|
| @@ -77,6 +77,19 @@ class NetworkTimeTracker : public net::URLFetcherDelegate {
|
| NETWORK_TIME_SUBSEQUENT_SYNC_PENDING,
|
| };
|
|
|
| + // Describes the behavior of fetches to the network time service.
|
| + enum FetchBehavior {
|
| + // Only used in case of an unrecognize Finch experiment parameter.
|
| + FETCH_BEHAVIOR_UNKNOWN,
|
| + // Time queries will be issued in the background as needed.
|
| + FETCHES_IN_BACKGROUND_ONLY,
|
| + // Time queries will not be issued except when StartTimeFetch() is called.
|
| + FETCHES_ON_DEMAND_ONLY,
|
| + // Time queries will be issued both in the background as needed and also
|
| + // on-demand.
|
| + FETCHES_IN_BACKGROUND_AND_ON_DEMAND,
|
| + };
|
| +
|
| static void RegisterPrefs(PrefRegistrySimple* registry);
|
|
|
| // Constructor. Arguments may be stubbed out for tests. |getter|, if not
|
| @@ -124,6 +137,9 @@ class NetworkTimeTracker : public net::URLFetcherDelegate {
|
| base::TimeDelta latency,
|
| base::TimeTicks post_time);
|
|
|
| + bool AreTimeFetchesEnabled() const;
|
| + FetchBehavior GetFetchBehavior() const;
|
| +
|
| void SetMaxResponseSizeForTesting(size_t limit);
|
|
|
| void SetPublicKeyForTesting(const base::StringPiece& key);
|
|
|