| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 106   // and neither will external extensions the user has explicitly uninstalled. | 106   // and neither will external extensions the user has explicitly uninstalled. | 
| 107   // Caller takes ownership of returned structure. | 107   // Caller takes ownership of returned structure. | 
| 108   ExtensionsInfo* GetInstalledExtensionsInfo(); | 108   ExtensionsInfo* GetInstalledExtensionsInfo(); | 
| 109 | 109 | 
| 110   // Returns the ExtensionInfo from the prefs for the given extension. If the | 110   // Returns the ExtensionInfo from the prefs for the given extension. If the | 
| 111   // extension is not present, NULL is returned. | 111   // extension is not present, NULL is returned. | 
| 112   ExtensionInfo* GetInstalledExtensionInfo(const std::string& extension_id); | 112   ExtensionInfo* GetInstalledExtensionInfo(const std::string& extension_id); | 
| 113 | 113 | 
| 114   static void RegisterUserPrefs(PrefService* prefs); | 114   static void RegisterUserPrefs(PrefService* prefs); | 
| 115 | 115 | 
|  | 116   // The underlying PrefService. | 
|  | 117   PrefService* pref_service() const { return prefs_; } | 
|  | 118 | 
| 116  private: | 119  private: | 
| 117 | 120 | 
| 118   // Converts absolute paths in the pref to paths relative to the | 121   // Converts absolute paths in the pref to paths relative to the | 
| 119   // install_directory_. | 122   // install_directory_. | 
| 120   void MakePathsRelative(); | 123   void MakePathsRelative(); | 
| 121 | 124 | 
| 122   // Converts internal relative paths to be absolute. Used for export to | 125   // Converts internal relative paths to be absolute. Used for export to | 
| 123   // consumers who expect full paths. | 126   // consumers who expect full paths. | 
| 124   void MakePathsAbsolute(DictionaryValue* dict); | 127   void MakePathsAbsolute(DictionaryValue* dict); | 
| 125 | 128 | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
| 156   // Base extensions install directory. | 159   // Base extensions install directory. | 
| 157   FilePath install_directory_; | 160   FilePath install_directory_; | 
| 158 | 161 | 
| 159   // The URLs of all of the toolstrips. | 162   // The URLs of all of the toolstrips. | 
| 160   URLList shelf_order_; | 163   URLList shelf_order_; | 
| 161 | 164 | 
| 162   DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 165   DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 
| 163 }; | 166 }; | 
| 164 | 167 | 
| 165 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 168 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 
| OLD | NEW | 
|---|