| 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_EXTENSION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 bool incognito); | 21 bool incognito); |
| 22 | 22 |
| 23 virtual ~ExtensionProvider(); | 23 virtual ~ExtensionProvider(); |
| 24 | 24 |
| 25 // ProviderInterface methods: | 25 // ProviderInterface methods: |
| 26 virtual RuleIterator* GetRuleIterator( | 26 virtual RuleIterator* GetRuleIterator( |
| 27 ContentSettingsType content_type, | 27 ContentSettingsType content_type, |
| 28 const ResourceIdentifier& resource_identifier, | 28 const ResourceIdentifier& resource_identifier, |
| 29 bool incognito) const OVERRIDE; | 29 bool incognito) const OVERRIDE; |
| 30 | 30 |
| 31 virtual void SetContentSetting( | 31 virtual void SetWebsiteSetting( |
| 32 const ContentSettingsPattern& embedded_url_pattern, | 32 const ContentSettingsPattern& primary_pattern, |
| 33 const ContentSettingsPattern& top_level_url_pattern, | 33 const ContentSettingsPattern& secondary_pattern, |
| 34 ContentSettingsType content_type, | 34 ContentSettingsType content_type, |
| 35 const ResourceIdentifier& resource_identifier, | 35 const ResourceIdentifier& resource_identifier, |
| 36 ContentSetting content_setting) OVERRIDE {} | 36 const Value* value) OVERRIDE {} |
| 37 | 37 |
| 38 virtual void ClearAllContentSettingsRules(ContentSettingsType content_type) | 38 virtual void ClearAllContentSettingsRules(ContentSettingsType content_type) |
| 39 OVERRIDE {} | 39 OVERRIDE {} |
| 40 | 40 |
| 41 virtual void ShutdownOnUIThread() OVERRIDE; | 41 virtual void ShutdownOnUIThread() OVERRIDE; |
| 42 | 42 |
| 43 // ExtensionContentSettingsStore::Observer methods: | 43 // ExtensionContentSettingsStore::Observer methods: |
| 44 virtual void OnContentSettingChanged(const std::string& extension_id, | 44 virtual void OnContentSettingChanged(const std::string& extension_id, |
| 45 bool incognito) OVERRIDE; | 45 bool incognito) OVERRIDE; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 // Specifies whether this provider manages settings for incognito or regular | 48 // Specifies whether this provider manages settings for incognito or regular |
| 49 // sessions. | 49 // sessions. |
| 50 bool incognito_; | 50 bool incognito_; |
| 51 | 51 |
| 52 // The backend storing content setting rules defined by extensions. | 52 // The backend storing content setting rules defined by extensions. |
| 53 scoped_refptr<ExtensionContentSettingsStore> extensions_settings_; | 53 scoped_refptr<ExtensionContentSettingsStore> extensions_settings_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(ExtensionProvider); | 55 DISALLOW_COPY_AND_ASSIGN(ExtensionProvider); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace content_settings | 58 } // namespace content_settings |
| 59 | 59 |
| 60 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H
_ | 60 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H
_ |
| OLD | NEW |