| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // A content settings provider that takes its settings out of the pref service. | 9 // A content settings provider that takes its settings out of the pref service. |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 ContentSettingsType content_type, | 111 ContentSettingsType content_type, |
| 112 const ResourceIdentifier& resource_identifier, | 112 const ResourceIdentifier& resource_identifier, |
| 113 ContentSetting content_setting); | 113 ContentSetting content_setting); |
| 114 | 114 |
| 115 virtual ContentSetting GetContentSetting( | 115 virtual ContentSetting GetContentSetting( |
| 116 const GURL& primary_url, | 116 const GURL& primary_url, |
| 117 const GURL& secondary_url, | 117 const GURL& secondary_url, |
| 118 ContentSettingsType content_type, | 118 ContentSettingsType content_type, |
| 119 const ResourceIdentifier& resource_identifier) const; | 119 const ResourceIdentifier& resource_identifier) const; |
| 120 | 120 |
| 121 virtual Value* GetContentSettingValue( |
| 122 const GURL& primary_url, |
| 123 const GURL& secondary_url, |
| 124 ContentSettingsType content_type, |
| 125 const ResourceIdentifier& resource_identifier) const; |
| 126 |
| 121 virtual void GetAllContentSettingsRules( | 127 virtual void GetAllContentSettingsRules( |
| 122 ContentSettingsType content_type, | 128 ContentSettingsType content_type, |
| 123 const ResourceIdentifier& resource_identifier, | 129 const ResourceIdentifier& resource_identifier, |
| 124 Rules* content_setting_rules) const; | 130 Rules* content_setting_rules) const; |
| 125 | 131 |
| 126 virtual void ClearAllContentSettingsRules( | 132 virtual void ClearAllContentSettingsRules( |
| 127 ContentSettingsType content_type); | 133 ContentSettingsType content_type); |
| 128 | 134 |
| 129 virtual void ShutdownOnUIThread(); | 135 virtual void ShutdownOnUIThread(); |
| 130 | 136 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 // Used around accesses to the value map objects to guarantee | 232 // Used around accesses to the value map objects to guarantee |
| 227 // thread safety. | 233 // thread safety. |
| 228 mutable base::Lock lock_; | 234 mutable base::Lock lock_; |
| 229 | 235 |
| 230 DISALLOW_COPY_AND_ASSIGN(PrefProvider); | 236 DISALLOW_COPY_AND_ASSIGN(PrefProvider); |
| 231 }; | 237 }; |
| 232 | 238 |
| 233 } // namespace content_settings | 239 } // namespace content_settings |
| 234 | 240 |
| 235 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_ | 241 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_ |
| OLD | NEW |