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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 | 802 |
803 // Set to true if this is the first time this ExtensionService has run. | 803 // Set to true if this is the first time this ExtensionService has run. |
804 // Used for specially handling external extensions that are installed the | 804 // Used for specially handling external extensions that are installed the |
805 // first time. | 805 // first time. |
806 bool is_first_run_; | 806 bool is_first_run_; |
807 | 807 |
808 // A set of the extension ids currently being reloaded. We use this to | 808 // A set of the extension ids currently being reloaded. We use this to |
809 // avoid showing a "new install" notice for an extension reinstall. | 809 // avoid showing a "new install" notice for an extension reinstall. |
810 std::set<std::string> extensions_being_reloaded_; | 810 std::set<std::string> extensions_being_reloaded_; |
811 | 811 |
| 812 // A set of the extension ids currently being terminated. We use this to |
| 813 // avoid trying to unload the same extension twice. |
| 814 std::set<std::string> extensions_being_terminated_; |
| 815 |
812 scoped_ptr<ExtensionErrorUI> extension_error_ui_; | 816 scoped_ptr<ExtensionErrorUI> extension_error_ui_; |
813 // Sequenced task runner for extension related file operations. | 817 // Sequenced task runner for extension related file operations. |
814 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; | 818 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; |
815 | 819 |
816 #if defined(ENABLE_EXTENSIONS) | 820 #if defined(ENABLE_EXTENSIONS) |
817 scoped_ptr<extensions::ExtensionActionStorageManager> | 821 scoped_ptr<extensions::ExtensionActionStorageManager> |
818 extension_action_storage_manager_; | 822 extension_action_storage_manager_; |
819 #endif | 823 #endif |
820 scoped_ptr<extensions::ManagementPolicy::Provider> | 824 scoped_ptr<extensions::ManagementPolicy::Provider> |
821 shared_module_policy_provider_; | 825 shared_module_policy_provider_; |
(...skipping 24 matching lines...) Expand all Loading... |
846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
847 GreylistedExtensionDisabled); | 851 GreylistedExtensionDisabled); |
848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
849 GreylistDontEnableManuallyDisabled); | 853 GreylistDontEnableManuallyDisabled); |
850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
851 GreylistUnknownDontChange); | 855 GreylistUnknownDontChange); |
852 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 856 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
853 }; | 857 }; |
854 | 858 |
855 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 859 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |