Chromium Code Reviews| 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 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | |
|
sdefresne
2016/09/20 11:50:46
nit: I think you can forward-declare ios::ChromeBr
ioanap
2016/09/20 12:43:29
Done.
| |
| 12 | |
| 13 namespace browsing_data { | |
| 14 class BrowsingDataCounter; | |
| 15 } | |
| 16 | |
| 17 class IOSBrowsingDataCounterFactory { | |
| 18 public: | |
| 19 // Creates a new instance of BrowsingDataCounter that is counting the data | |
| 20 // for |browserState|, related to a given deletion preference |pref_name|. | |
| 21 static std::unique_ptr<browsing_data::BrowsingDataCounter> | |
| 22 GetForBrowserStateAndPref(ios::ChromeBrowserState* browserState, | |
|
sdefresne
2016/09/20 11:50:46
style: this is C++, so the variable should be call
ioanap
2016/09/20 12:43:29
Done.
| |
| 23 base::StringPiece pref_name); | |
| 24 | |
| 25 private: | |
| 26 IOSBrowsingDataCounterFactory(); | |
| 27 ~IOSBrowsingDataCounterFactory(); | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(IOSBrowsingDataCounterFactory); | |
| 30 }; | |
| 31 | |
| 32 #endif // IOS_CHROME_BROWSER_BROWSING_DATA_IOS_BROWSING_DATA_COUNTER_FACTORY_H_ | |
| OLD | NEW |