OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_POLICY_CONTENT_SETTINGS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_POLICY_CONTENT_SETTINGS_PROVIDER_H_ |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_POLICY_CONTENT_SETTINGS_PROVIDER_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_POLICY_CONTENT_SETTINGS_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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/lock.h" | 12 #include "base/lock.h" |
13 #include "chrome/browser/content_settings/content_settings_provider.h" | 13 #include "chrome/browser/content_settings/default_content_settings_provider.h" |
14 #include "chrome/browser/prefs/pref_change_registrar.h" | 14 #include "chrome/browser/prefs/pref_change_registrar.h" |
15 #include "chrome/common/notification_observer.h" | 15 #include "chrome/common/notification_observer.h" |
16 #include "chrome/common/notification_registrar.h" | 16 #include "chrome/common/notification_registrar.h" |
17 | 17 |
18 class ContentSettingsDetails; | 18 class ContentSettingsDetails; |
19 class DictionaryValue; | 19 class DictionaryValue; |
20 class PrefService; | 20 class PrefService; |
21 class Profile; | 21 class Profile; |
22 | 22 |
23 class PolicyContentSettingsProvider : public ContentSettingsProviderInterface, | 23 class PolicyContentSettingsProvider : |
Bernhard Bauer
2011/01/25 13:11:19
Same here.
markusheintz_
2011/01/25 13:57:43
Done.
| |
24 public NotificationObserver { | 24 public DefaultContentSettingsProviderInterface, |
25 public NotificationObserver { | |
25 public: | 26 public: |
26 explicit PolicyContentSettingsProvider(Profile* profile); | 27 explicit PolicyContentSettingsProvider(Profile* profile); |
27 virtual ~PolicyContentSettingsProvider(); | 28 virtual ~PolicyContentSettingsProvider(); |
28 | 29 |
29 // ContentSettingsProviderInterface implementation. | 30 // ContentSettingsProviderInterface implementation. |
30 virtual bool CanProvideDefaultSetting(ContentSettingsType content_type) const; | 31 virtual bool CanProvideDefaultSetting(ContentSettingsType content_type) const; |
31 virtual ContentSetting ProvideDefaultSetting( | 32 virtual ContentSetting ProvideDefaultSetting( |
32 ContentSettingsType content_type) const; | 33 ContentSettingsType content_type) const; |
33 virtual void UpdateDefaultSetting(ContentSettingsType content_type, | 34 virtual void UpdateDefaultSetting(ContentSettingsType content_type, |
34 ContentSetting setting); | 35 ContentSetting setting); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 // guarantee thread safety. | 70 // guarantee thread safety. |
70 mutable Lock lock_; | 71 mutable Lock lock_; |
71 | 72 |
72 PrefChangeRegistrar pref_change_registrar_; | 73 PrefChangeRegistrar pref_change_registrar_; |
73 NotificationRegistrar notification_registrar_; | 74 NotificationRegistrar notification_registrar_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(PolicyContentSettingsProvider); | 76 DISALLOW_COPY_AND_ASSIGN(PolicyContentSettingsProvider); |
76 }; | 77 }; |
77 | 78 |
78 #endif // CHROME_BROWSER_CONTENT_SETTINGS_POLICY_CONTENT_SETTINGS_PROVIDER_H_ | 79 #endif // CHROME_BROWSER_CONTENT_SETTINGS_POLICY_CONTENT_SETTINGS_PROVIDER_H_ |
OLD | NEW |