| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // Get the order that the browser actions appear in the toolbar. | 43 // Get the order that the browser actions appear in the toolbar. |
| 44 std::vector<std::string> GetToolbarOrder(); | 44 std::vector<std::string> GetToolbarOrder(); |
| 45 | 45 |
| 46 // Set the order that the browser actions appear in the toolbar. | 46 // Set the order that the browser actions appear in the toolbar. |
| 47 void SetToolbarOrder(const std::vector<std::string>& extension_ids); | 47 void SetToolbarOrder(const std::vector<std::string>& extension_ids); |
| 48 | 48 |
| 49 // Called when an extension is installed, so that prefs get created. | 49 // Called when an extension is installed, so that prefs get created. |
| 50 void OnExtensionInstalled(Extension* extension); | 50 void OnExtensionInstalled(Extension* extension); |
| 51 | 51 |
| 52 // Called when an extension is uninstalled, so that prefs get cleaned up. | 52 // Called when an extension is uninstalled, so that prefs get cleaned up. |
| 53 void OnExtensionUninstalled(const Extension* extension, | 53 void OnExtensionUninstalled(const std::string& extension_id, |
| 54 const Extension::Location& location, |
| 54 bool external_uninstall); | 55 bool external_uninstall); |
| 55 | 56 |
| 56 // Returns the state (enabled/disabled) of the given extension. | 57 // Returns the state (enabled/disabled) of the given extension. |
| 57 Extension::State GetExtensionState(const std::string& extension_id); | 58 Extension::State GetExtensionState(const std::string& extension_id); |
| 58 | 59 |
| 59 // Called to change the extension's state when it is enabled/disabled. | 60 // Called to change the extension's state when it is enabled/disabled. |
| 60 void SetExtensionState(Extension* extension, Extension::State); | 61 void SetExtensionState(Extension* extension, Extension::State); |
| 61 | 62 |
| 62 // Did the extension ask to escalate its permission during an upgrade? | 63 // Did the extension ask to escalate its permission during an upgrade? |
| 63 bool DidExtensionEscalatePermissions(const std::string& id); | 64 bool DidExtensionEscalatePermissions(const std::string& id); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // Base extensions install directory. | 156 // Base extensions install directory. |
| 156 FilePath install_directory_; | 157 FilePath install_directory_; |
| 157 | 158 |
| 158 // The URLs of all of the toolstrips. | 159 // The URLs of all of the toolstrips. |
| 159 URLList shelf_order_; | 160 URLList shelf_order_; |
| 160 | 161 |
| 161 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 162 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 162 }; | 163 }; |
| 163 | 164 |
| 164 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 165 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| 165 | |
| OLD | NEW |