| Index: chrome/browser/browsing_data/browsing_data_counter_utils.h
|
| diff --git a/chrome/browser/browsing_data/browsing_data_counter_utils.h b/chrome/browser/browsing_data/browsing_data_counter_utils.h
|
| index df73472af15951eedee577206eb47fb5a86436df..d71d24b30e1323767b02ad1356d078dfca5b7998 100644
|
| --- a/chrome/browser/browsing_data/browsing_data_counter_utils.h
|
| +++ b/chrome/browser/browsing_data/browsing_data_counter_utils.h
|
| @@ -15,6 +15,27 @@ bool AreCountersEnabled();
|
| base::string16 GetCounterTextFromResult(
|
| const BrowsingDataCounter::Result* result);
|
|
|
| +// Browsing data types as seen in the Android UI.
|
| +// TODO(msramek): Reuse this enum as the canonical representation of the
|
| +// user-facing browsing data types in the Desktop UI as well.
|
| +//
|
| +// A Java counterpart will be generated for this enum.
|
| +// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser
|
| +enum BrowsingDataType {
|
| + HISTORY,
|
| + CACHE,
|
| + COOKIES,
|
| + PASSWORDS,
|
| + FORM_DATA,
|
| + BOOKMARKS,
|
| + NUM_TYPES
|
| +};
|
| +
|
| +// 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, std::string* out_pref);
|
| +
|
| // Creates a new instance of BrowsingDataCounter that is counting the data
|
| // related to a given deletion preference |pref_name|.
|
| BrowsingDataCounter* CreateCounterForPreference(std::string pref_name);
|
|
|