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

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

Issue 2795053002: [subresource_filter] Implement the "Smart" UI on Android (Closed)
Patch Set: rebase on #463637 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_CONTENT_SETTINGS_MA NAGER_FACTORY_H_ 5 #ifndef CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_CONTENT_SETTINGS_MA NAGER_FACTORY_H_
6 #define CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_CONTENT_SETTINGS_MA NAGER_FACTORY_H_ 6 #define CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_CONTENT_SETTINGS_MA NAGER_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
10 10
11 class KeyedService; 11 class KeyedService;
12 class Profile; 12 class Profile;
13 class SubresourceFilterContentSettingsManager;
13 14
14 // This class is responsible for instantiating a profile-scoped object which 15 // This class is responsible for instantiating a profile-scoped object which
15 // observes changes to content settings. 16 // observes changes to content settings.
16 class SubresourceFilterContentSettingsManagerFactory 17 class SubresourceFilterContentSettingsManagerFactory
17 : public BrowserContextKeyedServiceFactory { 18 : public BrowserContextKeyedServiceFactory {
18 public: 19 public:
19 static void EnsureForProfile(Profile* profile); 20 static SubresourceFilterContentSettingsManager* EnsureForProfile(
21 Profile* profile);
20 22
21 static SubresourceFilterContentSettingsManagerFactory* GetInstance(); 23 static SubresourceFilterContentSettingsManagerFactory* GetInstance();
22 24
23 SubresourceFilterContentSettingsManagerFactory(); 25 SubresourceFilterContentSettingsManagerFactory();
24 26
25 private: 27 private:
26 KeyedService* BuildServiceInstanceFor( 28 KeyedService* BuildServiceInstanceFor(
27 content::BrowserContext* profile) const override; 29 content::BrowserContext* profile) const override;
28 30
29 DISALLOW_COPY_AND_ASSIGN(SubresourceFilterContentSettingsManagerFactory); 31 DISALLOW_COPY_AND_ASSIGN(SubresourceFilterContentSettingsManagerFactory);
30 }; 32 };
31 33
32 #endif // CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_CONTENT_SETTINGS _MANAGER_FACTORY_H_ 34 #endif // CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_CONTENT_SETTINGS _MANAGER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698