blob: 2ab854392fd8f648ed66557403a675bfcfd58083 [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
Michael van Ouwerkerka91ab6e2020-02-03 12:55:3811// Feature flag for matching device expiration to pulse interval.
12extern const base::Feature kSharingMatchPulseInterval;
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.
19extern 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.
25extern const base::FeatureParam<int> kSharingPulseDeltaAndroidHours;
26
Rushan Suleymanov53b3f052020-03-05 09:22:3127// Feature flag for configuring the timeout in the sharing message bridge.
28extern const base::Feature kSharingMessageBridgeTimeout;
29extern const base::FeatureParam<int> kSharingMessageBridgeTimeoutSeconds;
30
Alex Chauf15a7192020-01-30 17:37:5131// Feature flag for sending sharing message via Sync.
32extern const base::Feature kSharingSendViaSync;
33
Alex Chaud7886842020-05-13 15:37:0534// Feature flag for prefer sending sharing message using VAPID.
35extern const base::Feature kSharingPreferVapid;
36
Himanshu Jajudbcee232019-06-17 19:41:4937#endif // CHROME_BROWSER_SHARING_FEATURES_H_