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 CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 | 12 |
13 class Profile; | 13 class Profile; |
14 | 14 |
15 namespace browsing_data { | 15 namespace browsing_data { |
16 class BrowsingDataCounter; | 16 class BrowsingDataCounter; |
17 } | 17 } |
18 | 18 |
19 namespace history { | |
20 class WebHistoryService; | |
21 } | |
22 | |
19 class BrowsingDataCounterFactory { | 23 class BrowsingDataCounterFactory { |
20 public: | 24 public: |
21 // Creates a new instance of BrowsingDataCounter that is counting the data | 25 // Creates a new instance of BrowsingDataCounter that is counting the data |
22 // for |profile|, related to a given deletion preference |pref_name|. | 26 // for |profile|, related to a given deletion preference |pref_name|. |
23 static std::unique_ptr<browsing_data::BrowsingDataCounter> | 27 static std::unique_ptr<browsing_data::BrowsingDataCounter> |
24 GetForProfileAndPref(Profile* profile, const std::string& pref_name); | 28 GetForProfileAndPref(Profile* profile, const std::string& pref_name); |
25 | 29 |
26 private: | 30 private: |
27 BrowsingDataCounterFactory(); | 31 BrowsingDataCounterFactory(); |
28 ~BrowsingDataCounterFactory(); | 32 ~BrowsingDataCounterFactory(); |
29 | 33 |
34 static history::WebHistoryService* GetUpdatedWebHistoryService( | |
35 Profile* profile); | |
30 DISALLOW_COPY_AND_ASSIGN(BrowsingDataCounterFactory); | 36 DISALLOW_COPY_AND_ASSIGN(BrowsingDataCounterFactory); |
msramek
2016/07/20 13:41:16
nit: Empty line before the macro.
ioanap
2016/07/20 17:50:36
Done.
| |
31 }; | 37 }; |
32 | 38 |
33 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ | 39 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ |
OLD | NEW |