Chromium Code Reviews| Index: ios/chrome/browser/browsing_data/ios_browsing_data_counter_factory.h |
| diff --git a/ios/chrome/browser/browsing_data/ios_browsing_data_counter_factory.h b/ios/chrome/browser/browsing_data/ios_browsing_data_counter_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c554ee2db6f63188f77dc3c5a4fc11a097736644 |
| --- /dev/null |
| +++ b/ios/chrome/browser/browsing_data/ios_browsing_data_counter_factory.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IOS_CHROME_BROWSER_BROWSING_DATA_IOS_BROWSING_DATA_COUNTER_FACTORY_H_ |
| +#define IOS_CHROME_BROWSER_BROWSING_DATA_IOS_BROWSING_DATA_COUNTER_FACTORY_H_ |
| + |
| +#include <memory> |
| + |
| +#include "base/strings/string_piece.h" |
| +#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.
|
| + |
| +namespace browsing_data { |
| +class BrowsingDataCounter; |
| +} |
| + |
| +class IOSBrowsingDataCounterFactory { |
| + public: |
| + // Creates a new instance of BrowsingDataCounter that is counting the data |
| + // for |browserState|, related to a given deletion preference |pref_name|. |
| + static std::unique_ptr<browsing_data::BrowsingDataCounter> |
| + 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.
|
| + base::StringPiece pref_name); |
| + |
| + private: |
| + IOSBrowsingDataCounterFactory(); |
| + ~IOSBrowsingDataCounterFactory(); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(IOSBrowsingDataCounterFactory); |
| +}; |
| + |
| +#endif // IOS_CHROME_BROWSER_BROWSING_DATA_IOS_BROWSING_DATA_COUNTER_FACTORY_H_ |