| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 typedef std::set<std::string> PrefKeySet; | 65 typedef std::set<std::string> PrefKeySet; |
| 66 | 66 |
| 67 // This enum is used to store the reason an extension's install has been | 67 // This enum is used to store the reason an extension's install has been |
| 68 // delayed. Do not remove items or re-order this enum as it is used in | 68 // delayed. Do not remove items or re-order this enum as it is used in |
| 69 // preferences. | 69 // preferences. |
| 70 enum DelayReason { | 70 enum DelayReason { |
| 71 DELAY_REASON_NONE = 0, | 71 DELAY_REASON_NONE = 0, |
| 72 DELAY_REASON_GC = 1, | 72 DELAY_REASON_GC = 1, |
| 73 DELAY_REASON_WAIT_FOR_IDLE = 2, | 73 DELAY_REASON_WAIT_FOR_IDLE = 2, |
| 74 DELAY_REASON_WAIT_FOR_IMPORTS = 3, | 74 DELAY_REASON_WAIT_FOR_IMPORTS = 3, |
| 75 DELAY_REASON_WAIT_FOR_OS_UPDATE = 4, |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 // Creates base::Time classes. The default implementation is just to return | 78 // Creates base::Time classes. The default implementation is just to return |
| 78 // the current time, but tests can inject alternative implementations. | 79 // the current time, but tests can inject alternative implementations. |
| 79 class TimeProvider { | 80 class TimeProvider { |
| 80 public: | 81 public: |
| 81 TimeProvider(); | 82 TimeProvider(); |
| 82 | 83 |
| 83 virtual ~TimeProvider(); | 84 virtual ~TimeProvider(); |
| 84 | 85 |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 bool extensions_disabled_; | 687 bool extensions_disabled_; |
| 687 | 688 |
| 688 base::ObserverList<ExtensionPrefsObserver> observer_list_; | 689 base::ObserverList<ExtensionPrefsObserver> observer_list_; |
| 689 | 690 |
| 690 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 691 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 691 }; | 692 }; |
| 692 | 693 |
| 693 } // namespace extensions | 694 } // namespace extensions |
| 694 | 695 |
| 695 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 696 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| OLD | NEW |