// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_TABS_MODEL_INACTIVE_TABS_FEATURES_H_
#define IOS_CHROME_BROWSER_TABS_MODEL_INACTIVE_TABS_FEATURES_H_

#import <Foundation/Foundation.h>

namespace base {
class TimeDelta;
}  // namespace base

class PrefService;

// Preference value when a user manually disable the feature.
extern const int kInactiveTabsDisabledByUser;

// Returns true if a user disabled the feature manually.
bool IsInactiveTabsExplicitlyDisabledByUser(PrefService* prefs);
bool IsInactiveTabsExplicitlyDisabledByUser(int raw_threshold_value);

// Convenience method for determining the tab inactivity threshold.
// The default is 21 days.
const base::TimeDelta InactiveTabsTimeThreshold(PrefService* prefs);

#endif  // IOS_CHROME_BROWSER_TABS_MODEL_INACTIVE_TABS_FEATURES_H_
