| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 explicit ExtensionPrefs(PrefService* prefs, const FilePath& root_dir_); | 42 explicit ExtensionPrefs(PrefService* prefs, const FilePath& root_dir_); |
| 43 ~ExtensionPrefs(); | 43 ~ExtensionPrefs(); |
| 44 | 44 |
| 45 // Returns a copy of the Extensions prefs. | 45 // Returns a copy of the Extensions prefs. |
| 46 // TODO(erikkay) Remove this so that external consumers don't need to be | 46 // TODO(erikkay) Remove this so that external consumers don't need to be |
| 47 // aware of the internal structure of the preferences. | 47 // aware of the internal structure of the preferences. |
| 48 DictionaryValue* CopyCurrentExtensions(); | 48 DictionaryValue* CopyCurrentExtensions(); |
| 49 | 49 |
| 50 // Populate |killed_ids| with extension ids that have been killed. | 50 // Returns true if the specified extension has an entry in prefs |
| 51 void GetKilledExtensionIds(std::set<std::string>* killed_ids); | 51 // and its killbit is on. |
| 52 bool IsExtensionKilled(const std::string& id); |
| 52 | 53 |
| 53 // Get the order that toolstrip URLs appear in the shelf. | 54 // Get the order that toolstrip URLs appear in the shelf. |
| 54 typedef std::vector<GURL> URLList; | 55 typedef std::vector<GURL> URLList; |
| 55 URLList GetShelfToolstripOrder(); | 56 URLList GetShelfToolstripOrder(); |
| 56 | 57 |
| 57 // Sets the order that toolstrip URLs appear in the shelf. | 58 // Sets the order that toolstrip URLs appear in the shelf. |
| 58 void SetShelfToolstripOrder(const URLList& urls); | 59 void SetShelfToolstripOrder(const URLList& urls); |
| 59 | 60 |
| 60 // Get the order that the browser actions appear in the toolbar. | 61 // Get the order that the browser actions appear in the toolbar. |
| 61 std::vector<std::string> GetToolbarOrder(); | 62 std::vector<std::string> GetToolbarOrder(); |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 // Base extensions install directory. | 320 // Base extensions install directory. |
| 320 FilePath install_directory_; | 321 FilePath install_directory_; |
| 321 | 322 |
| 322 // The URLs of all of the toolstrips. | 323 // The URLs of all of the toolstrips. |
| 323 URLList shelf_order_; | 324 URLList shelf_order_; |
| 324 | 325 |
| 325 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 326 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 326 }; | 327 }; |
| 327 | 328 |
| 328 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 329 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| OLD | NEW |