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

Unified Diff: components/browsing_data/core/counters/site_settings_counter.h

Issue 2816723002: Add "Site Settings" option to Clear Browsing Data on Android (Closed)
Patch Set: fix deps Created 3 years, 7 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: components/browsing_data/core/counters/site_settings_counter.h
diff --git a/components/browsing_data/core/counters/site_settings_counter.h b/components/browsing_data/core/counters/site_settings_counter.h
new file mode 100644
index 0000000000000000000000000000000000000000..bab835b4d4b7261710ff501d4b21ead3543ec355
--- /dev/null
+++ b/components/browsing_data/core/counters/site_settings_counter.h
@@ -0,0 +1,30 @@
+// Copyright 2017 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 COMPONENTS_BROWSING_DATA_CORE_COUNTERS_SITE_SETTINGS_COUNTER_H_
+#define COMPONENTS_BROWSING_DATA_CORE_COUNTERS_SITE_SETTINGS_COUNTER_H_
+
+#include "components/browsing_data/core/counters/browsing_data_counter.h"
+#include "components/content_settings/core/browser/host_content_settings_map.h"
+
+namespace browsing_data {
+
+class SiteSettingsCounter : public browsing_data::BrowsingDataCounter {
+ public:
+ explicit SiteSettingsCounter(HostContentSettingsMap* hcsm);
+ ~SiteSettingsCounter() override;
+
+ const char* GetPrefName() const override;
+
+ private:
+ void OnInitialized() override;
+
+ void Count() override;
+
+ scoped_refptr<HostContentSettingsMap> map_;
+};
+
+} // namespace browsing_data
+
+#endif // COMPONENTS_BROWSING_DATA_CORE_COUNTERS_SITE_SETTINGS_COUNTER_H_
« no previous file with comments | « components/browsing_data/core/browsing_data_utils.cc ('k') | components/browsing_data/core/counters/site_settings_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698