| 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_
|
|
|