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

Side by Side Diff: chrome/browser/subresource_filter/subresource_filter_content_settings_observer_factory.h

Issue 2777093007: [subresource_filter] Add metrics for UI / related things (Closed)
Patch Set: rkaplow review Created 3 years, 8 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 CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_CONTENT_SETTINGS_OB SERVER_FACTORY_H_
6 #define CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_CONTENT_SETTINGS_OB SERVER_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
10
11 class KeyedService;
12 class Profile;
13
14 // This class is responsible for instantiating a profile-scoped object which
15 // observes changes to content settings.
16 class SubresourceFilterContentSettingsObserverFactory
17 : public BrowserContextKeyedServiceFactory {
18 public:
19 static void EnsureForProfile(Profile* profile);
20
21 static SubresourceFilterContentSettingsObserverFactory* GetInstance();
22
23 SubresourceFilterContentSettingsObserverFactory();
24
25 private:
26 KeyedService* BuildServiceInstanceFor(
27 content::BrowserContext* profile) const override;
28
29 DISALLOW_COPY_AND_ASSIGN(SubresourceFilterContentSettingsObserverFactory);
30 };
31
32 #endif // CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_CONTENT_SETTINGS _OBSERVER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698