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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 // Describes the URLs that are able to install extensions. See | 493 // Describes the URLs that are able to install extensions. See |
494 // pref_names::kAllowedInstallSites for more information. | 494 // pref_names::kAllowedInstallSites for more information. |
495 URLPatternSet GetAllowedInstallSites(); | 495 URLPatternSet GetAllowedInstallSites(); |
496 | 496 |
497 // Schedules garbage collection of an extension's on-disk data on the next | 497 // Schedules garbage collection of an extension's on-disk data on the next |
498 // start of this ExtensionService. Applies only to extensions with isolated | 498 // start of this ExtensionService. Applies only to extensions with isolated |
499 // storage. | 499 // storage. |
500 void SetNeedsStorageGarbageCollection(bool value); | 500 void SetNeedsStorageGarbageCollection(bool value); |
501 bool NeedsStorageGarbageCollection(); | 501 bool NeedsStorageGarbageCollection(); |
502 | 502 |
503 // Used by ShellWindowGeometryCache to persist its cache. These methods | 503 // Used by AppWindowGeometryCache to persist its cache. These methods |
504 // should not be called directly. | 504 // should not be called directly. |
505 const base::DictionaryValue* GetGeometryCache( | 505 const base::DictionaryValue* GetGeometryCache( |
506 const std::string& extension_id) const; | 506 const std::string& extension_id) const; |
507 void SetGeometryCache(const std::string& extension_id, | 507 void SetGeometryCache(const std::string& extension_id, |
508 scoped_ptr<base::DictionaryValue> cache); | 508 scoped_ptr<base::DictionaryValue> cache); |
509 | 509 |
510 // Used for verification of installed extension ids. For the Set method, pass | 510 // Used for verification of installed extension ids. For the Set method, pass |
511 // null to remove the preference. | 511 // null to remove the preference. |
512 const base::DictionaryValue* GetInstallSignature(); | 512 const base::DictionaryValue* GetInstallSignature(); |
513 void SetInstallSignature(const base::DictionaryValue* signature); | 513 void SetInstallSignature(const base::DictionaryValue* signature); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 scoped_ptr<TimeProvider> time_provider_; | 643 scoped_ptr<TimeProvider> time_provider_; |
644 | 644 |
645 bool extensions_disabled_; | 645 bool extensions_disabled_; |
646 | 646 |
647 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 647 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
648 }; | 648 }; |
649 | 649 |
650 } // namespace extensions | 650 } // namespace extensions |
651 | 651 |
652 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 652 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
OLD | NEW |