| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_ |
| 7 | 7 |
| 8 // A content settings provider that takes its settings out of the pref service. | 8 // A content settings provider that takes its settings out of the pref service. |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 namespace user_prefs { | 25 namespace user_prefs { |
| 26 class PrefRegistrySyncable; | 26 class PrefRegistrySyncable; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace content_settings { | 29 namespace content_settings { |
| 30 | 30 |
| 31 // Content settings provider that provides content settings from the user | 31 // Content settings provider that provides content settings from the user |
| 32 // preference. | 32 // preference. |
| 33 class PrefProvider : public ObservableProvider { | 33 class PrefProvider : public ObservableProvider { |
| 34 public: | 34 public: |
| 35 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 35 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 36 | 36 |
| 37 PrefProvider(PrefService* prefs, bool incognito); | 37 PrefProvider(PrefService* prefs, bool incognito); |
| 38 virtual ~PrefProvider(); | 38 virtual ~PrefProvider(); |
| 39 | 39 |
| 40 // ProviderInterface implementations. | 40 // ProviderInterface implementations. |
| 41 virtual RuleIterator* GetRuleIterator( | 41 virtual RuleIterator* GetRuleIterator( |
| 42 ContentSettingsType content_type, | 42 ContentSettingsType content_type, |
| 43 const ResourceIdentifier& resource_identifier, | 43 const ResourceIdentifier& resource_identifier, |
| 44 bool incognito) const OVERRIDE; | 44 bool incognito) const OVERRIDE; |
| 45 | 45 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 // Used around accesses to the value map objects to guarantee thread safety. | 105 // Used around accesses to the value map objects to guarantee thread safety. |
| 106 mutable base::Lock lock_; | 106 mutable base::Lock lock_; |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(PrefProvider); | 108 DISALLOW_COPY_AND_ASSIGN(PrefProvider); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace content_settings | 111 } // namespace content_settings |
| 112 | 112 |
| 113 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_ | 113 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_ |
| OLD | NEW |