Chromium Code Reviews| 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; | |
|
maxbogue
2016/07/21 16:03:05
Why is this here? I don't see any reference in thi
ioanap
2016/07/22 09:59:25
It was used before. Removed it now. Thank you!
Do
| |
| 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 |
| 30 DISALLOW_COPY_AND_ASSIGN(BrowsingDataCounterFactory); | 34 DISALLOW_COPY_AND_ASSIGN(BrowsingDataCounterFactory); |
| 31 }; | 35 }; |
| 32 | 36 |
| 33 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ | 37 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ |
| OLD | NEW |