| 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 bool IsFromBookmark(const std::string& extension_id) const; | 455 bool IsFromBookmark(const std::string& extension_id) const; |
| 456 | 456 |
| 457 // Returns true if the extension was installed as a default app. | 457 // Returns true if the extension was installed as a default app. |
| 458 bool WasInstalledByDefault(const std::string& extension_id) const; | 458 bool WasInstalledByDefault(const std::string& extension_id) const; |
| 459 | 459 |
| 460 // Helper method to acquire the installation time of an extension. | 460 // Helper method to acquire the installation time of an extension. |
| 461 // Returns base::Time() if the installation time could not be parsed or | 461 // Returns base::Time() if the installation time could not be parsed or |
| 462 // found. | 462 // found. |
| 463 base::Time GetInstallTime(const std::string& extension_id) const; | 463 base::Time GetInstallTime(const std::string& extension_id) const; |
| 464 | 464 |
| 465 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 465 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 466 | 466 |
| 467 bool extensions_disabled() { return extensions_disabled_; } | 467 bool extensions_disabled() { return extensions_disabled_; } |
| 468 | 468 |
| 469 ContentSettingsStore* content_settings_store() { | 469 ContentSettingsStore* content_settings_store() { |
| 470 return content_settings_store_.get(); | 470 return content_settings_store_.get(); |
| 471 } | 471 } |
| 472 | 472 |
| 473 // The underlying PrefService. | 473 // The underlying PrefService. |
| 474 PrefService* pref_service() const { return prefs_; } | 474 PrefService* pref_service() const { return prefs_; } |
| 475 | 475 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 scoped_ptr<TimeProvider> time_provider_; | 615 scoped_ptr<TimeProvider> time_provider_; |
| 616 | 616 |
| 617 bool extensions_disabled_; | 617 bool extensions_disabled_; |
| 618 | 618 |
| 619 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 619 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 620 }; | 620 }; |
| 621 | 621 |
| 622 } // namespace extensions | 622 } // namespace extensions |
| 623 | 623 |
| 624 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 624 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| OLD | NEW |