| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_POLICY_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // A content settings provider that takes its settings out of policies. | 9 // A content settings provider that takes its settings out of policies. |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(PolicyDefaultProvider); | 80 DISALLOW_COPY_AND_ASSIGN(PolicyDefaultProvider); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 // PolicyProvider that provider managed content-settings. | 83 // PolicyProvider that provider managed content-settings. |
| 84 class PolicyProvider : public BaseProvider, | 84 class PolicyProvider : public BaseProvider, |
| 85 public NotificationObserver { | 85 public NotificationObserver { |
| 86 public: | 86 public: |
| 87 explicit PolicyProvider(Profile* profile, | 87 explicit PolicyProvider(Profile* profile, |
| 88 DefaultProviderInterface* default_provider); | 88 DefaultProviderInterface* default_provider); |
| 89 ~PolicyProvider(); | 89 virtual ~PolicyProvider(); |
| 90 static void RegisterUserPrefs(PrefService* prefs); | 90 static void RegisterUserPrefs(PrefService* prefs); |
| 91 | 91 |
| 92 // BaseProvider Implementation | 92 // BaseProvider Implementation |
| 93 virtual void Init(); | 93 virtual void Init(); |
| 94 | 94 |
| 95 virtual void SetContentSetting( | 95 virtual void SetContentSetting( |
| 96 const ContentSettingsPattern& requesting_pattern, | 96 const ContentSettingsPattern& requesting_pattern, |
| 97 const ContentSettingsPattern& embedding_pattern, | 97 const ContentSettingsPattern& embedding_pattern, |
| 98 ContentSettingsType content_type, | 98 ContentSettingsType content_type, |
| 99 const ResourceIdentifier& resource_identifier, | 99 const ResourceIdentifier& resource_identifier, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 PrefChangeRegistrar pref_change_registrar_; | 144 PrefChangeRegistrar pref_change_registrar_; |
| 145 NotificationRegistrar notification_registrar_; | 145 NotificationRegistrar notification_registrar_; |
| 146 | 146 |
| 147 DISALLOW_COPY_AND_ASSIGN(PolicyProvider); | 147 DISALLOW_COPY_AND_ASSIGN(PolicyProvider); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 } // namespace content_settings | 150 } // namespace content_settings |
| 151 | 151 |
| 152 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ | 152 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ |
| OLD | NEW |