| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 bool WasInstalledByDefault(const std::string& extension_id) const; | 509 bool WasInstalledByDefault(const std::string& extension_id) const; |
| 510 | 510 |
| 511 // Returns true if the extension was installed as an oem app. | 511 // Returns true if the extension was installed as an oem app. |
| 512 bool WasInstalledByOem(const std::string& extension_id) const; | 512 bool WasInstalledByOem(const std::string& extension_id) const; |
| 513 | 513 |
| 514 // Helper method to acquire the installation time of an extension. | 514 // Helper method to acquire the installation time of an extension. |
| 515 // Returns base::Time() if the installation time could not be parsed or | 515 // Returns base::Time() if the installation time could not be parsed or |
| 516 // found. | 516 // found. |
| 517 base::Time GetInstallTime(const std::string& extension_id) const; | 517 base::Time GetInstallTime(const std::string& extension_id) const; |
| 518 | 518 |
| 519 // Returns true if the extension is allowed to be synced. |
| 520 bool IsSyncable(const std::string& extension_id) const; |
| 521 |
| 519 // Gets/sets the last launch time of an extension. | 522 // Gets/sets the last launch time of an extension. |
| 520 base::Time GetLastLaunchTime(const std::string& extension_id) const; | 523 base::Time GetLastLaunchTime(const std::string& extension_id) const; |
| 521 void SetLastLaunchTime(const std::string& extension_id, | 524 void SetLastLaunchTime(const std::string& extension_id, |
| 522 const base::Time& time); | 525 const base::Time& time); |
| 523 | 526 |
| 524 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 527 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 525 | 528 |
| 526 bool extensions_disabled() const { return extensions_disabled_; } | 529 bool extensions_disabled() const { return extensions_disabled_; } |
| 527 | 530 |
| 528 // The underlying PrefService. | 531 // The underlying PrefService. |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 bool extensions_disabled_; | 724 bool extensions_disabled_; |
| 722 | 725 |
| 723 ObserverList<ExtensionPrefsObserver> observer_list_; | 726 ObserverList<ExtensionPrefsObserver> observer_list_; |
| 724 | 727 |
| 725 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 728 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 726 }; | 729 }; |
| 727 | 730 |
| 728 } // namespace extensions | 731 } // namespace extensions |
| 729 | 732 |
| 730 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 733 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| OLD | NEW |