| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // The extension's update URL data. If not empty, the ExtensionUpdater | 263 // The extension's update URL data. If not empty, the ExtensionUpdater |
| 264 // will append a ap= parameter to the URL when checking if a new version | 264 // will append a ap= parameter to the URL when checking if a new version |
| 265 // of the extension is available. | 265 // of the extension is available. |
| 266 void SetUpdateUrlData(const std::string& extension_id, | 266 void SetUpdateUrlData(const std::string& extension_id, |
| 267 const std::string& data); | 267 const std::string& data); |
| 268 std::string GetUpdateUrlData(const std::string& extension_id); | 268 std::string GetUpdateUrlData(const std::string& extension_id); |
| 269 | 269 |
| 270 // Sets a preference value that is controlled by the extension. In other | 270 // Sets a preference value that is controlled by the extension. In other |
| 271 // words, this is not a pref value *about* the extension but something | 271 // words, this is not a pref value *about* the extension but something |
| 272 // global the extension wants to override. | 272 // global the extension wants to override. |
| 273 // Takes ownership of |value|. |
| 273 void SetExtensionControlledPref(const std::string& extension_id, | 274 void SetExtensionControlledPref(const std::string& extension_id, |
| 274 const std::string& pref_key, | 275 const std::string& pref_key, |
| 275 bool incognito, | 276 bool incognito, |
| 276 Value* value); | 277 Value* value); |
| 277 | 278 |
| 278 void RemoveExtensionControlledPref(const std::string& extension_id, | 279 void RemoveExtensionControlledPref(const std::string& extension_id, |
| 279 const std::string& pref_key, | 280 const std::string& pref_key, |
| 280 bool incognito); | 281 bool incognito); |
| 281 | 282 |
| 282 static void RegisterUserPrefs(PrefService* prefs); | 283 static void RegisterUserPrefs(PrefService* prefs); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 // Weak pointer, owned by Profile. | 393 // Weak pointer, owned by Profile. |
| 393 ExtensionPrefValueMap* extension_pref_value_map_; | 394 ExtensionPrefValueMap* extension_pref_value_map_; |
| 394 | 395 |
| 395 // The URLs of all of the toolstrips. | 396 // The URLs of all of the toolstrips. |
| 396 URLList shelf_order_; | 397 URLList shelf_order_; |
| 397 | 398 |
| 398 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 399 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 399 }; | 400 }; |
| 400 | 401 |
| 401 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 402 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| OLD | NEW |