| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_UTILS_H_ | 5 #ifndef COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_UTILS_H_ |
| 6 #define COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_UTILS_H_ | 6 #define COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_UTILS_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "components/browsing_data/core/clear_browsing_data_tab.h" | 10 #include "components/browsing_data/core/clear_browsing_data_tab.h" |
| 11 #include "components/browsing_data/core/counters/browsing_data_counter.h" | 11 #include "components/browsing_data/core/counters/browsing_data_counter.h" |
| 12 | 12 |
| 13 namespace browsing_data { | 13 namespace browsing_data { |
| 14 | 14 |
| 15 // Browsing data types as seen in the Android UI. | 15 // Browsing data types as seen in the Android UI. |
| 16 // TODO(msramek): Reuse this enum as the canonical representation of the | 16 // TODO(msramek): Reuse this enum as the canonical representation of the |
| 17 // user-facing browsing data types in the Desktop UI as well. | 17 // user-facing browsing data types in the Desktop UI as well. |
| 18 // | 18 // |
| 19 // A Java counterpart will be generated for this enum. | 19 // A Java counterpart will be generated for this enum. |
| 20 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.browsing_data | 20 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.browsing_data |
| 21 enum class BrowsingDataType { | 21 enum class BrowsingDataType { |
| 22 HISTORY, | 22 HISTORY, |
| 23 CACHE, | 23 CACHE, |
| 24 COOKIES, | 24 COOKIES, |
| 25 PASSWORDS, | 25 PASSWORDS, |
| 26 FORM_DATA, | 26 FORM_DATA, |
| 27 BOOKMARKS, | 27 BOOKMARKS, |
| 28 SITE_SETTINGS, |
| 28 NUM_TYPES | 29 NUM_TYPES |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 // Time period ranges available when doing browsing data removals. | 32 // Time period ranges available when doing browsing data removals. |
| 32 // | 33 // |
| 33 // A Java counterpart will be generated for this enum. | 34 // A Java counterpart will be generated for this enum. |
| 34 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.browsing_data | 35 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.browsing_data |
| 35 enum class TimePeriod { | 36 enum class TimePeriod { |
| 36 LAST_HOUR = 0, | 37 LAST_HOUR = 0, |
| 37 LAST_DAY, | 38 LAST_DAY, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 68 std::string* out_pref); | 69 std::string* out_pref); |
| 69 | 70 |
| 70 // Copies the deletion preferences for timeperiod, cache, history and cookies | 71 // Copies the deletion preferences for timeperiod, cache, history and cookies |
| 71 // to a separate preferences that are used to on the basic CBD tab. | 72 // to a separate preferences that are used to on the basic CBD tab. |
| 72 // This only happens the first time this method is called. | 73 // This only happens the first time this method is called. |
| 73 void MigratePreferencesToBasic(PrefService* prefs); | 74 void MigratePreferencesToBasic(PrefService* prefs); |
| 74 | 75 |
| 75 } // namespace browsing_data | 76 } // namespace browsing_data |
| 76 | 77 |
| 77 #endif // COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_UTILS_H_ | 78 #endif // COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_UTILS_H_ |
| OLD | NEW |