| 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 IOS_CHROME_BROWSER_BROWSING_DATA_IOS_BROWSING_DATA_COUNTER_FACTORY_H_ |
| 6 #define IOS_CHROME_BROWSER_BROWSING_DATA_IOS_BROWSING_DATA_COUNTER_FACTORY_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/strings/string_piece.h" |
| 11 |
| 12 namespace ios { |
| 13 class ChromeBrowserState; |
| 14 } |
| 15 |
| 16 namespace browsing_data { |
| 17 class BrowsingDataCounter; |
| 18 } |
| 19 |
| 20 class IOSBrowsingDataCounterFactory { |
| 21 public: |
| 22 // Creates a new instance of BrowsingDataCounter that is counting the data |
| 23 // for |browser_state|, related to a given deletion preference |pref_name|. |
| 24 static std::unique_ptr<browsing_data::BrowsingDataCounter> |
| 25 GetForBrowserStateAndPref(ios::ChromeBrowserState* browser_state, |
| 26 base::StringPiece pref_name); |
| 27 |
| 28 private: |
| 29 IOSBrowsingDataCounterFactory(); |
| 30 ~IOSBrowsingDataCounterFactory(); |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(IOSBrowsingDataCounterFactory); |
| 33 }; |
| 34 |
| 35 #endif // IOS_CHROME_BROWSER_BROWSING_DATA_IOS_BROWSING_DATA_COUNTER_FACTORY_H_ |
| OLD | NEW |