| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 COMPONENTS_BROWSING_DATA_CORE_COUNTERS_SITE_SETTINGS_COUNTER_H_ |
| 6 #define COMPONENTS_BROWSING_DATA_CORE_COUNTERS_SITE_SETTINGS_COUNTER_H_ |
| 7 |
| 8 #include "components/browsing_data/core/counters/browsing_data_counter.h" |
| 9 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 10 |
| 11 namespace browsing_data { |
| 12 |
| 13 class SiteSettingsCounter : public browsing_data::BrowsingDataCounter { |
| 14 public: |
| 15 explicit SiteSettingsCounter(HostContentSettingsMap* hcsm); |
| 16 ~SiteSettingsCounter() override; |
| 17 |
| 18 const char* GetPrefName() const override; |
| 19 |
| 20 private: |
| 21 void OnInitialized() override; |
| 22 |
| 23 void Count() override; |
| 24 |
| 25 scoped_refptr<HostContentSettingsMap> map_; |
| 26 }; |
| 27 |
| 28 } // namespace browsing_data |
| 29 |
| 30 #endif // COMPONENTS_BROWSING_DATA_CORE_COUNTERS_SITE_SETTINGS_COUNTER_H_ |
| OLD | NEW |