Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Himanshu Jaju | dbcee23 | 2019-06-17 19:41:49 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROME_BROWSER_SHARING_FEATURES_H_ |
| 6 | #define CHROME_BROWSER_SHARING_FEATURES_H_ |
| 7 | |
| 8 | #include "base/feature_list.h" |
Michael van Ouwerkerk | 99d7e56 | 2019-12-03 17:14:36 | [diff] [blame] | 9 | #include "base/metrics/field_trial_params.h" |
Himanshu Jaju | dbcee23 | 2019-06-17 19:41:49 | [diff] [blame] | 10 | |
Elly Fong-Jones | 6d1e47c7 | 2023-02-24 16:12:57 | [diff] [blame^] | 11 | BASE_DECLARE_FEATURE(kClickToCall); |
| 12 | |
Michael van Ouwerkerk | a91ab6e | 2020-02-03 12:55:38 | [diff] [blame] | 13 | // Feature flag for matching device expiration to pulse interval. |
Daniel Cheng | 63ee20c5 | 2022-09-22 18:22:51 | [diff] [blame] | 14 | BASE_DECLARE_FEATURE(kSharingMatchPulseInterval); |
Michael van Ouwerkerk | a91ab6e | 2020-02-03 12:55:38 | [diff] [blame] | 15 | |
| 16 | // The delta from the pulse interval in hours after which a device is considered |
| 17 | // expired, for Desktop devices. Chrome on Desktop is expected to update the |
| 18 | // last updated timestamp quite frequently because it can do this when |
| 19 | // backgrounded. Such devices can be marked stale aggressively if they did not |
| 20 | // update for more than an interval. |
| 21 | extern const base::FeatureParam<int> kSharingPulseDeltaDesktopHours; |
| 22 | |
| 23 | // The delta from the pulse interval in hours after which a device is considered |
| 24 | // expired, for Android devices. Chrome on Android is expected to update the |
| 25 | // last updated timestamp less frequently because it does not do this when |
| 26 | // backgrounded. Such devices cannot be marked stale aggressively. |
| 27 | extern const base::FeatureParam<int> kSharingPulseDeltaAndroidHours; |
| 28 | |
Himanshu Jaju | dbcee23 | 2019-06-17 19:41:49 | [diff] [blame] | 29 | #endif // CHROME_BROWSER_SHARING_FEATURES_H_ |