Chromium Code Reviews| 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 <memory> | |
| 9 #include <vector> | |
|
msramek
2017/05/08 10:53:56
Not needed.
| |
| 10 | |
| 11 #include "components/browsing_data/core/counters/browsing_data_counter.h" | |
| 12 #include "components/content_settings/core/browser/host_content_settings_map.h" | |
| 13 | |
| 14 namespace browsing_data { | |
| 15 | |
| 16 class SiteSettingsCounter : public browsing_data::BrowsingDataCounter { | |
| 17 public: | |
| 18 explicit SiteSettingsCounter(HostContentSettingsMap* hcsm); | |
| 19 ~SiteSettingsCounter() override; | |
| 20 | |
| 21 const char* GetPrefName() const override; | |
| 22 | |
| 23 private: | |
| 24 void OnInitialized() override; | |
| 25 | |
| 26 void Count() override; | |
| 27 | |
| 28 scoped_refptr<HostContentSettingsMap> map_; | |
|
msramek
2017/05/08 10:53:56
Do we need to keep this pointer? We don't observe
dullweber
2017/05/08 15:50:24
I need the pointer because I can't access the Host
| |
| 29 }; | |
| 30 | |
| 31 } // namespace browsing_data | |
| 32 | |
| 33 #endif // COMPONENTS_BROWSING_DATA_CORE_COUNTERS_SITE_SETTINGS_COUNTER_H_ | |
| OLD | NEW |