| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_UTILS_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_UTILS_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_UTILS_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_UTILS_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "components/browsing_data/core/browsing_data_utils.h" | 9 #include "components/browsing_data/core/browsing_data_utils.h" |
| 10 #include "components/browsing_data/core/counters/browsing_data_counter.h" | 10 #include "components/browsing_data/core/counters/browsing_data_counter.h" |
| 11 | 11 |
| 12 class Profile; | |
| 13 | |
| 14 // Whether the browsing data counters experiment is enabled. | 12 // Whether the browsing data counters experiment is enabled. |
| 15 bool AreCountersEnabled(); | 13 bool AreCountersEnabled(); |
| 16 | 14 |
| 17 // Constructs the text to be displayed by a counter from the given |result|. | 15 // Constructs the text to be displayed by a counter from the given |result|. |
| 18 base::string16 GetChromeCounterTextFromResult( | 16 base::string16 GetChromeCounterTextFromResult( |
| 19 const browsing_data::BrowsingDataCounter::Result* result); | 17 const browsing_data::BrowsingDataCounter::Result* result); |
| 20 | 18 |
| 21 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_UTILS_H_ | 19 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_UTILS_H_ |
| OLD | NEW |