| 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_EXTENSIONS_EXTENSION_PREFS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 void SetBrowserActionVisibility(const Extension* extension, bool visible); | 132 void SetBrowserActionVisibility(const Extension* extension, bool visible); |
| 133 | 133 |
| 134 // Did the extension ask to escalate its permission during an upgrade? | 134 // Did the extension ask to escalate its permission during an upgrade? |
| 135 bool DidExtensionEscalatePermissions(const std::string& id); | 135 bool DidExtensionEscalatePermissions(const std::string& id); |
| 136 | 136 |
| 137 // If |did_escalate| is true, the preferences for |extension| will be set to | 137 // If |did_escalate| is true, the preferences for |extension| will be set to |
| 138 // require the install warning when the user tries to enable. | 138 // require the install warning when the user tries to enable. |
| 139 void SetDidExtensionEscalatePermissions(const Extension* extension, | 139 void SetDidExtensionEscalatePermissions(const Extension* extension, |
| 140 bool did_escalate); | 140 bool did_escalate); |
| 141 | 141 |
| 142 // Getter and setters for disabled reason. |
| 143 Extension::DisableReason GetDisableReason(const std::string& extension_id); |
| 144 void SetDisableReason(const std::string& extension_id, |
| 145 Extension::DisableReason disable_reason); |
| 146 void RemoveDisableReason(const std::string& extension_id); |
| 147 |
| 142 // Returns the version string for the currently installed extension, or | 148 // Returns the version string for the currently installed extension, or |
| 143 // the empty string if not found. | 149 // the empty string if not found. |
| 144 std::string GetVersionString(const std::string& extension_id); | 150 std::string GetVersionString(const std::string& extension_id); |
| 145 | 151 |
| 146 // Re-writes the extension manifest into the prefs. | 152 // Re-writes the extension manifest into the prefs. |
| 147 // Called to change the extension's manifest when it's re-localized. | 153 // Called to change the extension's manifest when it's re-localized. |
| 148 void UpdateManifest(const Extension* extension); | 154 void UpdateManifest(const Extension* extension); |
| 149 | 155 |
| 150 // Returns extension path based on extension ID, or empty FilePath on error. | 156 // Returns extension path based on extension ID, or empty FilePath on error. |
| 151 FilePath GetExtensionPath(const std::string& extension_id); | 157 FilePath GetExtensionPath(const std::string& extension_id); |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 // Contains all the logic for handling the order for various extension | 510 // Contains all the logic for handling the order for various extension |
| 505 // properties. | 511 // properties. |
| 506 scoped_ptr<ExtensionSorting> extension_sorting_; | 512 scoped_ptr<ExtensionSorting> extension_sorting_; |
| 507 | 513 |
| 508 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; | 514 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; |
| 509 | 515 |
| 510 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 516 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 511 }; | 517 }; |
| 512 | 518 |
| 513 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 519 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| OLD | NEW |