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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // If we have idle install information for |extension_id|, this puts it into | 135 // If we have idle install information for |extension_id|, this puts it into |
136 // the out parameters and returns true. Otherwise returns false. | 136 // the out parameters and returns true. Otherwise returns false. |
137 bool GetIdleInstallInfo(const std::string& extension_id, | 137 bool GetIdleInstallInfo(const std::string& extension_id, |
138 FilePath* crx_path, | 138 FilePath* crx_path, |
139 std::string* version, | 139 std::string* version, |
140 base::Time* fetch_time); | 140 base::Time* fetch_time); |
141 | 141 |
142 // Returns the extension id's that have idle install information. | 142 // Returns the extension id's that have idle install information. |
143 std::set<std::string> GetIdleInstallInfoIds(); | 143 std::set<std::string> GetIdleInstallInfoIds(); |
144 | 144 |
145 // Returns whether app toolbars are visible for the specified extension. | |
146 bool AreAppTabToolbarsVisible(const std::string& extension_id); | |
147 | |
148 // Set whether app toolbars are visible for the specified extension. | |
149 void SetAppTabToolbarVisibility(const std::string& extension_id, bool value); | |
150 | |
151 static void RegisterUserPrefs(PrefService* prefs); | 145 static void RegisterUserPrefs(PrefService* prefs); |
152 | 146 |
153 // The underlying PrefService. | 147 // The underlying PrefService. |
154 PrefService* pref_service() const { return prefs_; } | 148 PrefService* pref_service() const { return prefs_; } |
155 | 149 |
156 private: | 150 private: |
157 | 151 |
158 // Converts absolute paths in the pref to paths relative to the | 152 // Converts absolute paths in the pref to paths relative to the |
159 // install_directory_. | 153 // install_directory_. |
160 void MakePathsRelative(); | 154 void MakePathsRelative(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // Base extensions install directory. | 194 // Base extensions install directory. |
201 FilePath install_directory_; | 195 FilePath install_directory_; |
202 | 196 |
203 // The URLs of all of the toolstrips. | 197 // The URLs of all of the toolstrips. |
204 URLList shelf_order_; | 198 URLList shelf_order_; |
205 | 199 |
206 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 200 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
207 }; | 201 }; |
208 | 202 |
209 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 203 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
OLD | NEW |