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 | |
Michael van Ouwerkerk | a91ab6e | 2020-02-03 12:55:38 | [diff] [blame] | 11 | // Feature flag for matching device expiration to pulse interval. |
Daniel Cheng | 63ee20c5 | 2022-09-22 18:22:51 | [diff] [blame^] | 12 | BASE_DECLARE_FEATURE(kSharingMatchPulseInterval); |
Michael van Ouwerkerk | a91ab6e | 2020-02-03 12:55:38 | [diff] [blame] | 13 | |
| 14 | // The delta from the pulse interval in hours after which a device is considered |
| 15 | // expired, for Desktop devices. Chrome on Desktop is expected to update the |
| 16 | // last updated timestamp quite frequently because it can do this when |
| 17 | // backgrounded. Such devices can be marked stale aggressively if they did not |
| 18 | // update for more than an interval. |
| 19 | extern const base::FeatureParam<int> kSharingPulseDeltaDesktopHours; |
| 20 | |
| 21 | // The delta from the pulse interval in hours after which a device is considered |
| 22 | // expired, for Android devices. Chrome on Android is expected to update the |
| 23 | // last updated timestamp less frequently because it does not do this when |
| 24 | // backgrounded. Such devices cannot be marked stale aggressively. |
| 25 | extern const base::FeatureParam<int> kSharingPulseDeltaAndroidHours; |
| 26 | |
Rushan Suleymanov | 53b3f05 | 2020-03-05 09:22:31 | [diff] [blame] | 27 | // Feature flag for configuring the timeout in the sharing message bridge. |
Daniel Cheng | 63ee20c5 | 2022-09-22 18:22:51 | [diff] [blame^] | 28 | BASE_DECLARE_FEATURE(kSharingMessageBridgeTimeout); |
Rushan Suleymanov | 53b3f05 | 2020-03-05 09:22:31 | [diff] [blame] | 29 | extern const base::FeatureParam<int> kSharingMessageBridgeTimeoutSeconds; |
| 30 | |
Alex Chau | f15a719 | 2020-01-30 17:37:51 | [diff] [blame] | 31 | // Feature flag for sending sharing message via Sync. |
Daniel Cheng | 63ee20c5 | 2022-09-22 18:22:51 | [diff] [blame^] | 32 | BASE_DECLARE_FEATURE(kSharingSendViaSync); |
Alex Chau | f15a719 | 2020-01-30 17:37:51 | [diff] [blame] | 33 | |
Alex Chau | d788684 | 2020-05-13 15:37:05 | [diff] [blame] | 34 | // Feature flag for prefer sending sharing message using VAPID. |
Daniel Cheng | 63ee20c5 | 2022-09-22 18:22:51 | [diff] [blame^] | 35 | BASE_DECLARE_FEATURE(kSharingPreferVapid); |
Alex Chau | d788684 | 2020-05-13 15:37:05 | [diff] [blame] | 36 | |
Himanshu Jaju | dbcee23 | 2019-06-17 19:41:49 | [diff] [blame] | 37 | #endif // CHROME_BROWSER_SHARING_FEATURES_H_ |