| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 void SetWebStoreLogin(const std::string& login); | 426 void SetWebStoreLogin(const std::string& login); |
| 427 | 427 |
| 428 // Returns true if the user repositioned the app on the app launcher via drag | 428 // Returns true if the user repositioned the app on the app launcher via drag |
| 429 // and drop. | 429 // and drop. |
| 430 bool WasAppDraggedByUser(const std::string& extension_id); | 430 bool WasAppDraggedByUser(const std::string& extension_id); |
| 431 | 431 |
| 432 // Sets a flag indicating that the user repositioned the app on the app | 432 // Sets a flag indicating that the user repositioned the app on the app |
| 433 // launcher by drag and dropping it. | 433 // launcher by drag and dropping it. |
| 434 void SetAppDraggedByUser(const std::string& extension_id); | 434 void SetAppDraggedByUser(const std::string& extension_id); |
| 435 | 435 |
| 436 // The extension's update URL data. If not empty, the ExtensionUpdater | |
| 437 // will append a ap= parameter to the URL when checking if a new version | |
| 438 // of the extension is available. | |
| 439 void SetUpdateUrlData(const std::string& extension_id, | |
| 440 const std::string& data); | |
| 441 std::string GetUpdateUrlData(const std::string& extension_id); | |
| 442 | |
| 443 // Sets a preference value that is controlled by the extension. In other | 436 // Sets a preference value that is controlled by the extension. In other |
| 444 // words, this is not a pref value *about* the extension but something | 437 // words, this is not a pref value *about* the extension but something |
| 445 // global the extension wants to override. | 438 // global the extension wants to override. |
| 446 // Takes ownership of |value|. | 439 // Takes ownership of |value|. |
| 447 void SetExtensionControlledPref(const std::string& extension_id, | 440 void SetExtensionControlledPref(const std::string& extension_id, |
| 448 const std::string& pref_key, | 441 const std::string& pref_key, |
| 449 ExtensionPrefsScope scope, | 442 ExtensionPrefsScope scope, |
| 450 base::Value* value); | 443 base::Value* value); |
| 451 | 444 |
| 452 void RemoveExtensionControlledPref(const std::string& extension_id, | 445 void RemoveExtensionControlledPref(const std::string& extension_id, |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 scoped_ptr<TimeProvider> time_provider_; | 653 scoped_ptr<TimeProvider> time_provider_; |
| 661 | 654 |
| 662 bool extensions_disabled_; | 655 bool extensions_disabled_; |
| 663 | 656 |
| 664 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 657 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 665 }; | 658 }; |
| 666 | 659 |
| 667 } // namespace extensions | 660 } // namespace extensions |
| 668 | 661 |
| 669 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 662 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| OLD | NEW |