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 <memory> |
| 9 #include <string> |
| 10 |
| 11 #include "base/macros.h" |
| 12 |
| 13 class Profile; |
| 14 |
| 15 namespace browsing_data { |
| 16 class BrowsingDataCounter; |
| 17 } |
| 18 |
| 19 class BrowsingDataCounterFactory { |
| 20 public: |
| 21 // Creates a new instance of BrowsingDataCounter that is counting the data |
| 22 // for |profile|, related to a given deletion preference |pref_name|. |
| 23 static std::unique_ptr<browsing_data::BrowsingDataCounter> |
| 24 GetForProfileAndPref(Profile* profile, const std::string& pref_name); |
| 25 |
| 26 private: |
| 27 BrowsingDataCounterFactory(); |
| 28 ~BrowsingDataCounterFactory(); |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(BrowsingDataCounterFactory); |
| 31 }; |
| 32 |
| 33 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_FACTORY_H_ |
OLD | NEW |