OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ | |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "base/strings/string16.h" | |
10 | |
11 class Profile; | |
12 | |
13 namespace browsing_data { | |
14 class BrowsingDataCounter; | |
15 } | |
16 | |
17 class BrowsingDataCounterFactory { | |
18 public: | |
19 // Creates a new instance of BrowsingDataCounter that is counting the data | |
20 // related to a given deletion preference |pref_name| for |profile|. | |
21 static browsing_data::BrowsingDataCounter* GetForPreference( | |
msramek
2016/07/07 11:55:33
Consider calling this GetForProfileAndPreference o
ioanap
2016/07/07 16:30:48
GetForProfileAndPref sounds good!
Done.
| |
22 std::string pref_name, | |
msramek
2016/07/07 11:55:33
nit: use a const ref to avoid copying the string
ioanap
2016/07/07 16:30:48
Done.
| |
23 Profile* profile); | |
24 | |
25 private: | |
26 BrowsingDataCounterFactory(); | |
27 ~BrowsingDataCounterFactory(); | |
28 | |
29 DISALLOW_COPY_AND_ASSIGN(BrowsingDataCounterFactory); | |
30 }; | |
31 | |
32 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ | |
OLD | NEW |