OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // The extension's update URL data. If not empty, the ExtensionUpdater | 271 // The extension's update URL data. If not empty, the ExtensionUpdater |
272 // will append a ap= parameter to the URL when checking if a new version | 272 // will append a ap= parameter to the URL when checking if a new version |
273 // of the extension is available. | 273 // of the extension is available. |
274 void SetUpdateUrlData(const std::string& extension_id, | 274 void SetUpdateUrlData(const std::string& extension_id, |
275 const std::string& data); | 275 const std::string& data); |
276 std::string GetUpdateUrlData(const std::string& extension_id); | 276 std::string GetUpdateUrlData(const std::string& extension_id); |
277 | 277 |
278 // Sets a preference value that is controlled by the extension. In other | 278 // Sets a preference value that is controlled by the extension. In other |
279 // words, this is not a pref value *about* the extension but something | 279 // words, this is not a pref value *about* the extension but something |
280 // global the extension wants to override. | 280 // global the extension wants to override. |
| 281 // Takes ownership of |value|. |
281 void SetExtensionControlledPref(const std::string& extension_id, | 282 void SetExtensionControlledPref(const std::string& extension_id, |
282 const std::string& pref_key, | 283 const std::string& pref_key, |
283 bool incognito, | 284 bool incognito, |
284 Value* value); | 285 Value* value); |
285 | 286 |
286 void RemoveExtensionControlledPref(const std::string& extension_id, | 287 void RemoveExtensionControlledPref(const std::string& extension_id, |
287 const std::string& pref_key, | 288 const std::string& pref_key, |
288 bool incognito); | 289 bool incognito); |
289 | 290 |
290 static void RegisterUserPrefs(PrefService* prefs); | 291 static void RegisterUserPrefs(PrefService* prefs); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 // Weak pointer, owned by Profile. | 401 // Weak pointer, owned by Profile. |
401 ExtensionPrefValueMap* extension_pref_value_map_; | 402 ExtensionPrefValueMap* extension_pref_value_map_; |
402 | 403 |
403 // The URLs of all of the toolstrips. | 404 // The URLs of all of the toolstrips. |
404 URLList shelf_order_; | 405 URLList shelf_order_; |
405 | 406 |
406 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 407 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
407 }; | 408 }; |
408 | 409 |
409 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 410 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
OLD | NEW |