Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: chrome/browser/browsing_data/browsing_data_counter_utils.h

Issue 2127403002: Make browsing_data component a layered component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed output_name from components/browsing_data/content/BUILD.gn Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/browsing_data_utils.h" 9 #include "components/browsing_data/core/browsing_data_utils.h"
10 #include "components/browsing_data/counters/browsing_data_counter.h" 10 #include "components/browsing_data/core/counters/browsing_data_counter.h"
11 11
12 class Profile; 12 class Profile;
13 13
14 // Whether the browsing data counters experiment is enabled. 14 // Whether the browsing data counters experiment is enabled.
15 bool AreCountersEnabled(); 15 bool AreCountersEnabled();
16 16
17 // Constructs the text to be displayed by a counter from the given |result|. 17 // Constructs the text to be displayed by a counter from the given |result|.
18 base::string16 GetCounterTextFromResult( 18 base::string16 GetCounterTextFromResult(
19 const browsing_data::BrowsingDataCounter::Result* result); 19 const browsing_data::BrowsingDataCounter::Result* result);
20 20
21 // Copies the name of the deletion preference corresponding to the given 21 // Copies the name of the deletion preference corresponding to the given
22 // |data_type| to |out_pref|. Returns false if no such preference exists. 22 // |data_type| to |out_pref|. Returns false if no such preference exists.
23 bool GetDeletionPreferenceFromDataType( 23 bool GetDeletionPreferenceFromDataType(
24 browsing_data::BrowsingDataType data_type, 24 browsing_data::BrowsingDataType data_type,
25 std::string* out_pref); 25 std::string* out_pref);
26 26
27 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_UTILS_H_ 27 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698