| 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 "chrome/browser/content_settings/content_settings_observable_provider.h
" | 10 #include "chrome/browser/content_settings/content_settings_observable_provider.h
" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class ExtensionProvider : public ObservableProvider, | 22 class ExtensionProvider : public ObservableProvider, |
| 23 public ExtensionContentSettingsStore::Observer { | 23 public ExtensionContentSettingsStore::Observer { |
| 24 public: | 24 public: |
| 25 ExtensionProvider(ExtensionContentSettingsStore* extensions_settings, | 25 ExtensionProvider(ExtensionContentSettingsStore* extensions_settings, |
| 26 bool incognito); | 26 bool incognito); |
| 27 | 27 |
| 28 virtual ~ExtensionProvider(); | 28 virtual ~ExtensionProvider(); |
| 29 | 29 |
| 30 // Provider Interface implementations. | 30 // Provider Interface implementations. |
| 31 virtual ContentSetting GetContentSetting( | 31 virtual ContentSetting GetContentSetting( |
| 32 const GURL& embedded_url, | 32 const GURL& primary_url, |
| 33 const GURL& top_level_url, | 33 const GURL& secondary_url, |
| 34 ContentSettingsType content_type, | 34 ContentSettingsType content_type, |
| 35 const ResourceIdentifier& resource_identifier) const; | 35 const ResourceIdentifier& resource_identifier) const; |
| 36 | 36 |
| 37 virtual Value* GetContentSettingValue( |
| 38 const GURL& primary_url, |
| 39 const GURL& secondary_url, |
| 40 ContentSettingsType content_type, |
| 41 const ResourceIdentifier& resource_identifier) const; |
| 42 |
| 37 virtual void SetContentSetting( | 43 virtual void SetContentSetting( |
| 38 const ContentSettingsPattern& embedded_url_pattern, | 44 const ContentSettingsPattern& embedded_url_pattern, |
| 39 const ContentSettingsPattern& top_level_url_pattern, | 45 const ContentSettingsPattern& top_level_url_pattern, |
| 40 ContentSettingsType content_type, | 46 ContentSettingsType content_type, |
| 41 const ResourceIdentifier& resource_identifier, | 47 const ResourceIdentifier& resource_identifier, |
| 42 ContentSetting content_setting) {} | 48 ContentSetting content_setting) {} |
| 43 | 49 |
| 44 virtual void GetAllContentSettingsRules( | 50 virtual void GetAllContentSettingsRules( |
| 45 ContentSettingsType content_type, | 51 ContentSettingsType content_type, |
| 46 const ResourceIdentifier& resource_identifier, | 52 const ResourceIdentifier& resource_identifier, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 63 | 69 |
| 64 // The backend storing content setting rules defined by extensions. | 70 // The backend storing content setting rules defined by extensions. |
| 65 scoped_refptr<ExtensionContentSettingsStore> extensions_settings_; | 71 scoped_refptr<ExtensionContentSettingsStore> extensions_settings_; |
| 66 | 72 |
| 67 DISALLOW_COPY_AND_ASSIGN(ExtensionProvider); | 73 DISALLOW_COPY_AND_ASSIGN(ExtensionProvider); |
| 68 }; | 74 }; |
| 69 | 75 |
| 70 } // namespace content_settings | 76 } // namespace content_settings |
| 71 | 77 |
| 72 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H
_ | 78 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H
_ |
| OLD | NEW |