chromium/components/browsing_data/core/pref_names.h

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

#ifndef COMPONENTS_BROWSING_DATA_CORE_PREF_NAMES_H_
#define COMPONENTS_BROWSING_DATA_CORE_PREF_NAMES_H_

namespace user_prefs {
class PrefRegistrySyncable;
}

namespace browsing_data::prefs {

// JSON config to periodically delete some browsing data as specified by
// the BrowsingDataLifetime policy.
inline constexpr char kBrowsingDataLifetime[] =;

// Boolean set to true while browsing data needs to be deleted per
// ClearBrowsingDataOnExit policy.
// TODO (crbug/1026442): Consider setting this pref to true during fast
// shutdown if the ClearBrowsingDataOnExit policy is set.
inline constexpr char kClearBrowsingDataOnExitDeletionPending[] =;

// List of browsing data, specified by the ClearBrowsingDataOnExit policy, to
// delete just before browser shutdown.
inline constexpr char kClearBrowsingDataOnExitList[] =;

// Clear browsing data deletion time period.
inline constexpr char kDeleteTimePeriod[] =;
inline constexpr char kDeleteTimePeriodBasic[] =;

// Clear browsing data deletion time period experiment. This experiment requires
// users to interact with timeframe drop down menu in the clear browsing data
// dialog. It also adds a new 'Last 15 minutes' value to the list. Until the
// user has made their 1st time period selection, the UI shows 'Select a time
// range'.
inline constexpr char kDeleteTimePeriodV2[] =;
inline constexpr char kDeleteTimePeriodV2Basic[] =;

// Clear Browsing Data dialog datatype preferences.
inline constexpr char kDeleteBrowsingHistory[] =;
inline constexpr char kDeleteBrowsingHistoryBasic[] =;
inline constexpr char kDeleteDownloadHistory[] =;
inline constexpr char kDeleteCache[] =;
inline constexpr char kDeleteCacheBasic[] =;
inline constexpr char kDeleteCookies[] =;
inline constexpr char kDeleteCookiesBasic[] =;
inline constexpr char kDeletePasswords[] =;
inline constexpr char kDeleteFormData[] =;
inline constexpr char kDeleteHostedAppsData[] =;
inline constexpr char kDeleteSiteSettings[] =;
inline constexpr char kCloseTabs[] =;

// Other Clear Browsing Data preferences.
inline constexpr char kLastClearBrowsingDataTime[] =;
inline constexpr char kClearBrowsingDataHistoryNoticeShownTimes[] =;
inline constexpr char kLastClearBrowsingDataTab[] =;

// Registers the Clear Browsing Data UI prefs.
void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry);

}  // namespace browsing_data::prefs

#endif  // COMPONENTS_BROWSING_DATA_CORE_PREF_NAMES_H_