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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/file_path.h" | 17 #include "base/file_path.h" |
18 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
19 #include "base/memory/linked_ptr.h" | 19 #include "base/memory/linked_ptr.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
21 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
22 #include "base/property_bag.h" | 22 #include "base/property_bag.h" |
23 #include "base/time.h" | 23 #include "base/time.h" |
24 #include "base/tuple.h" | 24 #include "base/tuple.h" |
25 #include "chrome/browser/extensions/app_shortcut_manager.h" | 25 #include "chrome/browser/extensions/app_shortcut_manager.h" |
26 #include "chrome/browser/extensions/apps_promo.h" | 26 #include "chrome/browser/extensions/apps_promo.h" |
| 27 #include "chrome/browser/extensions/extension_garbage_collector.h" |
27 #include "chrome/browser/extensions/extension_icon_manager.h" | 28 #include "chrome/browser/extensions/extension_icon_manager.h" |
28 #include "chrome/browser/extensions/extension_menu_manager.h" | 29 #include "chrome/browser/extensions/extension_menu_manager.h" |
29 #include "chrome/browser/extensions/extension_prefs.h" | 30 #include "chrome/browser/extensions/extension_prefs.h" |
30 #include "chrome/browser/extensions/extension_process_manager.h" | 31 #include "chrome/browser/extensions/extension_process_manager.h" |
31 #include "chrome/browser/extensions/extension_sync_data.h" | 32 #include "chrome/browser/extensions/extension_sync_data.h" |
32 #include "chrome/browser/extensions/extension_toolbar_model.h" | 33 #include "chrome/browser/extensions/extension_toolbar_model.h" |
33 #include "chrome/browser/extensions/extension_warning_set.h" | 34 #include "chrome/browser/extensions/extension_warning_set.h" |
34 #include "chrome/browser/extensions/extensions_quota_service.h" | 35 #include "chrome/browser/extensions/extensions_quota_service.h" |
35 #include "chrome/browser/extensions/external_extension_provider_interface.h" | 36 #include "chrome/browser/extensions/external_extension_provider_interface.h" |
36 #include "chrome/browser/extensions/pending_extension_manager.h" | 37 #include "chrome/browser/extensions/pending_extension_manager.h" |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 void UpdatePluginListWithNaClModules(); | 701 void UpdatePluginListWithNaClModules(); |
701 | 702 |
702 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); | 703 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); |
703 | 704 |
704 // The profile this ExtensionService is part of. | 705 // The profile this ExtensionService is part of. |
705 Profile* profile_; | 706 Profile* profile_; |
706 | 707 |
707 // Preferences for the owning profile (weak reference). | 708 // Preferences for the owning profile (weak reference). |
708 ExtensionPrefs* extension_prefs_; | 709 ExtensionPrefs* extension_prefs_; |
709 | 710 |
| 711 // The ExtensionGarbageCollector associated with this service; this is |
| 712 // responsible for cleaning up old or partially deleted extensions. |
| 713 scoped_refptr<ExtensionGarbageCollector> extension_garbage_collector_; |
| 714 |
710 // Settings for the owning profile. | 715 // Settings for the owning profile. |
711 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; | 716 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; |
712 | 717 |
713 // The current list of installed extensions. | 718 // The current list of installed extensions. |
714 // TODO(aa): This should use chrome/common/extensions/extension_set.h. | 719 // TODO(aa): This should use chrome/common/extensions/extension_set.h. |
715 ExtensionSet extensions_; | 720 ExtensionSet extensions_; |
716 | 721 |
717 // The list of installed extensions that have been disabled. | 722 // The list of installed extensions that have been disabled. |
718 ExtensionSet disabled_extensions_; | 723 ExtensionSet disabled_extensions_; |
719 | 724 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 scoped_ptr<ExtensionGlobalError> extension_global_error_; | 850 scoped_ptr<ExtensionGlobalError> extension_global_error_; |
846 | 851 |
847 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
848 InstallAppsWithUnlimtedStorage); | 853 InstallAppsWithUnlimtedStorage); |
849 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
850 InstallAppsAndCheckStorageProtection); | 855 InstallAppsAndCheckStorageProtection); |
851 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 856 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
852 }; | 857 }; |
853 | 858 |
854 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 859 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |