Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: ios/chrome/browser/browsing_data/ios_browsing_data_counter_factory.h

Issue 2350773002: Add a browsing data counter factory on iOS (Closed)
Patch Set: Addressed comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..c892e4c584755d8d7eb8f4fe0a7da93229c284ba
--- /dev/null
+++ b/ios/chrome/browser/browsing_data/ios_browsing_data_counter_factory.h
@@ -0,0 +1,35 @@
+// 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"
+
+namespace ios {
+class ChromeBrowserState;
+}
+
+namespace browsing_data {
+class BrowsingDataCounter;
+}
+
+class IOSBrowsingDataCounterFactory {
+ public:
+ // Creates a new instance of BrowsingDataCounter that is counting the data
+ // for |browser_state|, related to a given deletion preference |pref_name|.
+ static std::unique_ptr<browsing_data::BrowsingDataCounter>
+ GetForBrowserStateAndPref(ios::ChromeBrowserState* browser_state,
+ base::StringPiece pref_name);
+
+ private:
+ IOSBrowsingDataCounterFactory();
+ ~IOSBrowsingDataCounterFactory();
+
+ DISALLOW_COPY_AND_ASSIGN(IOSBrowsingDataCounterFactory);
+};
+
+#endif // IOS_CHROME_BROWSER_BROWSING_DATA_IOS_BROWSING_DATA_COUNTER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698