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