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