blob: f1c8b48443cf35b9bbba1b6fa405b1354220b755 [file] [log] [blame]
Avi Drissman4a8573c2022-09-09 19:35:541// Copyright 2019 The Chromium Authors
Himanshu Jajudbcee232019-06-17 19:41:492// 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 Ouwerkerk99d7e562019-12-03 17:14:369#include "base/metrics/field_trial_params.h"
Himanshu Jajudbcee232019-06-17 19:41:4910
Elly Fong-Jones6d1e47c72023-02-24 16:12:5711BASE_DECLARE_FEATURE(kClickToCall);
12
Michael van Ouwerkerka91ab6e2020-02-03 12:55:3813// Feature flag for matching device expiration to pulse interval.
Daniel Cheng63ee20c52022-09-22 18:22:5114BASE_DECLARE_FEATURE(kSharingMatchPulseInterval);
Michael van Ouwerkerka91ab6e2020-02-03 12:55:3815
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.
21extern 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.
27extern const base::FeatureParam<int> kSharingPulseDeltaAndroidHours;
28
Himanshu Jajudbcee232019-06-17 19:41:4929#endif // CHROME_BROWSER_SHARING_FEATURES_H_