| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CUSTOM_EXTENSION_PROVID
ER_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_CUSTOM_EXTENSION_PROVID
ER_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_CUSTOM_EXTENSION_PROVID
ER_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_CUSTOM_EXTENSION_PROVID
ER_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 23 matching lines...) Expand all Loading... |
| 34 const ContentSettingsPattern& secondary_pattern, | 34 const ContentSettingsPattern& secondary_pattern, |
| 35 ContentSettingsType content_type, | 35 ContentSettingsType content_type, |
| 36 const ResourceIdentifier& resource_identifier, | 36 const ResourceIdentifier& resource_identifier, |
| 37 base::Value* value) OVERRIDE; | 37 base::Value* value) OVERRIDE; |
| 38 | 38 |
| 39 virtual void ClearAllContentSettingsRules(ContentSettingsType content_type) | 39 virtual void ClearAllContentSettingsRules(ContentSettingsType content_type) |
| 40 OVERRIDE {} | 40 OVERRIDE {} |
| 41 | 41 |
| 42 virtual void ShutdownOnUIThread() OVERRIDE; | 42 virtual void ShutdownOnUIThread() OVERRIDE; |
| 43 | 43 |
| 44 virtual std::string GetProviderName() const OVERRIDE; |
| 45 |
| 46 virtual SettingSource GetSettingSource() const OVERRIDE; |
| 47 |
| 44 // extensions::ContentSettingsStore::Observer methods: | 48 // extensions::ContentSettingsStore::Observer methods: |
| 45 virtual void OnContentSettingChanged(const std::string& extension_id, | 49 virtual void OnContentSettingChanged(const std::string& extension_id, |
| 46 bool incognito) OVERRIDE; | 50 bool incognito) OVERRIDE; |
| 47 | 51 |
| 48 private: | 52 private: |
| 49 // Specifies whether this provider manages settings for incognito or regular | 53 // Specifies whether this provider manages settings for incognito or regular |
| 50 // sessions. | 54 // sessions. |
| 51 bool incognito_; | 55 bool incognito_; |
| 52 | 56 |
| 53 // The backend storing content setting rules defined by extensions. | 57 // The backend storing content setting rules defined by extensions. |
| 54 scoped_refptr<extensions::ContentSettingsStore> extensions_settings_; | 58 scoped_refptr<extensions::ContentSettingsStore> extensions_settings_; |
| 55 | 59 |
| 56 DISALLOW_COPY_AND_ASSIGN(CustomExtensionProvider); | 60 DISALLOW_COPY_AND_ASSIGN(CustomExtensionProvider); |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 } // namespace content_settings | 63 } // namespace content_settings |
| 60 | 64 |
| 61 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_CUSTOM_EXTENSION_PRO
VIDER_H_ | 65 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_CUSTOM_EXTENSION_PRO
VIDER_H_ |
| OLD | NEW |