| Index: components/browsing_data/core/browsing_data_utils.h
|
| diff --git a/components/browsing_data/core/browsing_data_utils.h b/components/browsing_data/core/browsing_data_utils.h
|
| index db0d7c2ce912f4d0be1e6d92db26c616f35323e4..5c0e3d882d37b339288887b158aa3a1c107353f7 100644
|
| --- a/components/browsing_data/core/browsing_data_utils.h
|
| +++ b/components/browsing_data/core/browsing_data_utils.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "base/strings/string16.h"
|
| #include "base/time/time.h"
|
| +#include "components/browsing_data/core/browsing_data_enums.h"
|
| #include "components/browsing_data/core/counters/browsing_data_counter.h"
|
|
|
| namespace browsing_data {
|
| @@ -53,14 +54,24 @@ void RecordDeletionForPeriod(TimePeriod time_period);
|
| // Currently this can only be used for counters for which the Result is defined
|
| // in components/browsing_data/core/counters.
|
| base::string16 GetCounterTextFromResult(
|
| - const browsing_data::BrowsingDataCounter::Result* result);
|
| + const BrowsingDataCounter::Result* result);
|
| +
|
| +// Returns the preference that stores the time period.
|
| +const char* GetTimePeriodPreferenceName(
|
| + ClearBrowsingDataPreferenceType pref_type);
|
|
|
| // Copies the name of the deletion preference corresponding to the given
|
| // |data_type| to |out_pref|. Returns false if no such preference exists.
|
| bool GetDeletionPreferenceFromDataType(
|
| BrowsingDataType data_type,
|
| + ClearBrowsingDataPreferenceType pref_type,
|
| std::string* out_pref);
|
|
|
| +// Copies the deletion preferences for timeperiod, cache, history and cookies
|
| +// to a separate preferences that are used to on the basic CBD tab.
|
| +// This only happens the first time this method is called.
|
| +void MigratePreferencesToBasic(PrefService* prefs);
|
| +
|
| } // namespace browsing_data
|
|
|
| #endif // COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_UTILS_H_
|
|
|