| 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 522 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 523 | 523 |
| 524 bool extensions_disabled() const { return extensions_disabled_; } | 524 bool extensions_disabled() const { return extensions_disabled_; } |
| 525 | 525 |
| 526 // The underlying PrefService. | 526 // The underlying PrefService. |
| 527 PrefService* pref_service() const { return prefs_; } | 527 PrefService* pref_service() const { return prefs_; } |
| 528 | 528 |
| 529 // The underlying AppSorting. | 529 // The underlying AppSorting. |
| 530 AppSorting* app_sorting() const { return app_sorting_.get(); } | 530 AppSorting* app_sorting() const { return app_sorting_.get(); } |
| 531 | 531 |
| 532 // Describes the URLs that are able to install extensions. See | |
| 533 // pref_names::kAllowedInstallSites for more information. | |
| 534 URLPatternSet GetAllowedInstallSites(); | |
| 535 | |
| 536 // Schedules garbage collection of an extension's on-disk data on the next | 532 // Schedules garbage collection of an extension's on-disk data on the next |
| 537 // start of this ExtensionService. Applies only to extensions with isolated | 533 // start of this ExtensionService. Applies only to extensions with isolated |
| 538 // storage. | 534 // storage. |
| 539 void SetNeedsStorageGarbageCollection(bool value); | 535 void SetNeedsStorageGarbageCollection(bool value); |
| 540 bool NeedsStorageGarbageCollection(); | 536 bool NeedsStorageGarbageCollection(); |
| 541 | 537 |
| 542 // Used by AppWindowGeometryCache to persist its cache. These methods | 538 // Used by AppWindowGeometryCache to persist its cache. These methods |
| 543 // should not be called directly. | 539 // should not be called directly. |
| 544 const base::DictionaryValue* GetGeometryCache( | 540 const base::DictionaryValue* GetGeometryCache( |
| 545 const std::string& extension_id) const; | 541 const std::string& extension_id) const; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 bool extensions_disabled_; | 708 bool extensions_disabled_; |
| 713 | 709 |
| 714 ObserverList<ExtensionPrefsObserver> observer_list_; | 710 ObserverList<ExtensionPrefsObserver> observer_list_; |
| 715 | 711 |
| 716 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 712 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 717 }; | 713 }; |
| 718 | 714 |
| 719 } // namespace extensions | 715 } // namespace extensions |
| 720 | 716 |
| 721 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 717 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| OLD | NEW |