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

Side by Side 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 failing test on Android due to HCSM being created before FeatureList 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698