| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 29 matching lines...) Expand all Loading... |
| 40 // Sets the order that toolstrip URLs appear in the shelf. | 40 // Sets the order that toolstrip URLs appear in the shelf. |
| 41 void SetShelfToolstripOrder(const URLList& urls); | 41 void SetShelfToolstripOrder(const URLList& urls); |
| 42 | 42 |
| 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 Extension::State initial_state, |
| 52 bool initial_incognito_enabled); |
| 51 | 53 |
| 52 // Called when an extension is uninstalled, so that prefs get cleaned up. | 54 // Called when an extension is uninstalled, so that prefs get cleaned up. |
| 53 void OnExtensionUninstalled(const std::string& extension_id, | 55 void OnExtensionUninstalled(const std::string& extension_id, |
| 54 const Extension::Location& location, | 56 const Extension::Location& location, |
| 55 bool external_uninstall); | 57 bool external_uninstall); |
| 56 | 58 |
| 57 // Returns the state (enabled/disabled) of the given extension. | 59 // Returns the state (enabled/disabled) of the given extension. |
| 58 Extension::State GetExtensionState(const std::string& extension_id); | 60 Extension::State GetExtensionState(const std::string& extension_id); |
| 59 | 61 |
| 60 // Called to change the extension's state when it is enabled/disabled. | 62 // Called to change the extension's state when it is enabled/disabled. |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Base extensions install directory. | 201 // Base extensions install directory. |
| 200 FilePath install_directory_; | 202 FilePath install_directory_; |
| 201 | 203 |
| 202 // The URLs of all of the toolstrips. | 204 // The URLs of all of the toolstrips. |
| 203 URLList shelf_order_; | 205 URLList shelf_order_; |
| 204 | 206 |
| 205 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 207 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 206 }; | 208 }; |
| 207 | 209 |
| 208 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 210 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| OLD | NEW |