| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 void SetInstallParam(const std::string& extension_id, | 530 void SetInstallParam(const std::string& extension_id, |
| 531 const std::string& install_parameter); | 531 const std::string& install_parameter); |
| 532 | 532 |
| 533 // The total number of times we've disabled an extension due to corrupted | 533 // The total number of times we've disabled an extension due to corrupted |
| 534 // contents. | 534 // contents. |
| 535 int GetCorruptedDisableCount(); | 535 int GetCorruptedDisableCount(); |
| 536 void IncrementCorruptedDisableCount(); | 536 void IncrementCorruptedDisableCount(); |
| 537 | 537 |
| 538 private: | 538 private: |
| 539 friend class ExtensionPrefsBlacklistedExtensions; // Unit test. | 539 friend class ExtensionPrefsBlacklistedExtensions; // Unit test. |
| 540 friend class ExtensionPrefsComponentExtension; // Unit test. |
| 540 friend class ExtensionPrefsUninstallExtension; // Unit test. | 541 friend class ExtensionPrefsUninstallExtension; // Unit test. |
| 541 | 542 |
| 542 enum DisableReasonChange { | 543 enum DisableReasonChange { |
| 543 DISABLE_REASON_ADD, | 544 DISABLE_REASON_ADD, |
| 544 DISABLE_REASON_REMOVE, | 545 DISABLE_REASON_REMOVE, |
| 545 DISABLE_REASON_CLEAR | 546 DISABLE_REASON_CLEAR |
| 546 }; | 547 }; |
| 547 | 548 |
| 548 // See the Create methods. | 549 // See the Create methods. |
| 549 ExtensionPrefs(PrefService* prefs, | 550 ExtensionPrefs(PrefService* prefs, |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 bool extensions_disabled_; | 687 bool extensions_disabled_; |
| 687 | 688 |
| 688 ObserverList<ExtensionPrefsObserver> observer_list_; | 689 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 |