| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 ContentSettingsType content_type, | 85 ContentSettingsType content_type, |
| 86 const ResourceIdentifier& resource_identifier, | 86 const ResourceIdentifier& resource_identifier, |
| 87 ContentSetting content_setting); | 87 ContentSetting content_setting); |
| 88 | 88 |
| 89 virtual ContentSetting GetContentSetting( | 89 virtual ContentSetting GetContentSetting( |
| 90 const GURL& primary_url, | 90 const GURL& primary_url, |
| 91 const GURL& secondary_url, | 91 const GURL& secondary_url, |
| 92 ContentSettingsType content_type, | 92 ContentSettingsType content_type, |
| 93 const ResourceIdentifier& resource_identifier) const; | 93 const ResourceIdentifier& resource_identifier) const; |
| 94 | 94 |
| 95 virtual Value* GetContentSettingValue( |
| 96 const GURL& primary_url, |
| 97 const GURL& secondary_url, |
| 98 ContentSettingsType content_type, |
| 99 const ResourceIdentifier& resource_identifier) const; |
| 100 |
| 95 virtual void GetAllContentSettingsRules( | 101 virtual void GetAllContentSettingsRules( |
| 96 ContentSettingsType content_type, | 102 ContentSettingsType content_type, |
| 97 const ResourceIdentifier& resource_identifier, | 103 const ResourceIdentifier& resource_identifier, |
| 98 Rules* content_setting_rules) const; | 104 Rules* content_setting_rules) const; |
| 99 | 105 |
| 100 virtual void ClearAllContentSettingsRules( | 106 virtual void ClearAllContentSettingsRules( |
| 101 ContentSettingsType content_type); | 107 ContentSettingsType content_type); |
| 102 | 108 |
| 103 virtual void ShutdownOnUIThread(); | 109 virtual void ShutdownOnUIThread(); |
| 104 | 110 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 134 // Used around accesses to the content_settings_ object to guarantee | 140 // Used around accesses to the content_settings_ object to guarantee |
| 135 // thread safety. | 141 // thread safety. |
| 136 mutable base::Lock lock_; | 142 mutable base::Lock lock_; |
| 137 | 143 |
| 138 DISALLOW_COPY_AND_ASSIGN(PolicyProvider); | 144 DISALLOW_COPY_AND_ASSIGN(PolicyProvider); |
| 139 }; | 145 }; |
| 140 | 146 |
| 141 } // namespace content_settings | 147 } // namespace content_settings |
| 142 | 148 |
| 143 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ | 149 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ |
| OLD | NEW |