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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 should not be synced. | 519 // Returns true if the extension should not be synced. |
520 bool DoNotSync(const std::string& extension_id) const; | 520 bool DoNotSync(const std::string& extension_id) const; |
521 | 521 |
| 522 // Returns the set of install flags set for the extension, i.e. a bitmask of |
| 523 // extensions::InstallFlag. |
| 524 int GetInstallFlags(const std::string& extension_id) const; |
| 525 |
522 // Gets/sets the last launch time of an extension. | 526 // Gets/sets the last launch time of an extension. |
523 base::Time GetLastLaunchTime(const std::string& extension_id) const; | 527 base::Time GetLastLaunchTime(const std::string& extension_id) const; |
524 void SetLastLaunchTime(const std::string& extension_id, | 528 void SetLastLaunchTime(const std::string& extension_id, |
525 const base::Time& time); | 529 const base::Time& time); |
526 | 530 |
527 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 531 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
528 | 532 |
529 bool extensions_disabled() const { return extensions_disabled_; } | 533 bool extensions_disabled() const { return extensions_disabled_; } |
530 | 534 |
531 // The underlying PrefService. | 535 // The underlying PrefService. |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 bool extensions_disabled_; | 716 bool extensions_disabled_; |
713 | 717 |
714 ObserverList<ExtensionPrefsObserver> observer_list_; | 718 ObserverList<ExtensionPrefsObserver> observer_list_; |
715 | 719 |
716 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 720 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
717 }; | 721 }; |
718 | 722 |
719 } // namespace extensions | 723 } // namespace extensions |
720 | 724 |
721 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 725 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
OLD | NEW |