blob: 20879ac950610c0fe1daadbb9be55bfd62491cc9 [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SHARING_FEATURES_H_
#define CHROME_BROWSER_SHARING_FEATURES_H_
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
// Feature flag for matching device expiration to pulse interval.
BASE_DECLARE_FEATURE(kSharingMatchPulseInterval);
// The delta from the pulse interval in hours after which a device is considered
// expired, for Desktop devices. Chrome on Desktop is expected to update the
// last updated timestamp quite frequently because it can do this when
// backgrounded. Such devices can be marked stale aggressively if they did not
// update for more than an interval.
extern const base::FeatureParam<int> kSharingPulseDeltaDesktopHours;
// The delta from the pulse interval in hours after which a device is considered
// expired, for Android devices. Chrome on Android is expected to update the
// last updated timestamp less frequently because it does not do this when
// backgrounded. Such devices cannot be marked stale aggressively.
extern const base::FeatureParam<int> kSharingPulseDeltaAndroidHours;
// Feature flag for configuring the timeout in the sharing message bridge.
BASE_DECLARE_FEATURE(kSharingMessageBridgeTimeout);
extern const base::FeatureParam<int> kSharingMessageBridgeTimeoutSeconds;
// Feature flag for sending sharing message via Sync.
BASE_DECLARE_FEATURE(kSharingSendViaSync);
// Feature flag for prefer sending sharing message using VAPID.
BASE_DECLARE_FEATURE(kSharingPreferVapid);
#endif // CHROME_BROWSER_SHARING_FEATURES_H_