| 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/string16.h" | 23 #include "base/string16.h" |
| 24 #include "base/time.h" | 24 #include "base/time.h" |
| 25 #include "base/tuple.h" | 25 #include "base/tuple.h" |
| 26 #include "chrome/browser/extensions/api/api_resource_controller.h" | 26 #include "chrome/browser/extensions/api/api_resource_controller.h" |
| 27 #include "chrome/browser/extensions/app_shortcut_manager.h" | 27 #include "chrome/browser/extensions/app_shortcut_manager.h" |
| 28 #include "chrome/browser/extensions/app_sync_bundle.h" | 28 #include "chrome/browser/extensions/app_sync_bundle.h" |
| 29 #include "chrome/browser/extensions/apps_promo.h" | 29 #include "chrome/browser/extensions/apps_promo.h" |
| 30 #include "chrome/browser/extensions/extension_garbage_collector.h" | |
| 31 #include "chrome/browser/extensions/extension_icon_manager.h" | 30 #include "chrome/browser/extensions/extension_icon_manager.h" |
| 32 #include "chrome/browser/extensions/extension_menu_manager.h" | 31 #include "chrome/browser/extensions/extension_menu_manager.h" |
| 33 #include "chrome/browser/extensions/extension_prefs.h" | 32 #include "chrome/browser/extensions/extension_prefs.h" |
| 34 #include "chrome/browser/extensions/extension_process_manager.h" | 33 #include "chrome/browser/extensions/extension_process_manager.h" |
| 35 #include "chrome/browser/extensions/extension_sync_bundle.h" | 34 #include "chrome/browser/extensions/extension_sync_bundle.h" |
| 36 #include "chrome/browser/extensions/extension_toolbar_model.h" | 35 #include "chrome/browser/extensions/extension_toolbar_model.h" |
| 37 #include "chrome/browser/extensions/extension_warning_set.h" | 36 #include "chrome/browser/extensions/extension_warning_set.h" |
| 38 #include "chrome/browser/extensions/extensions_quota_service.h" | 37 #include "chrome/browser/extensions/extensions_quota_service.h" |
| 39 #include "chrome/browser/extensions/external_extension_provider_interface.h" | 38 #include "chrome/browser/extensions/external_extension_provider_interface.h" |
| 40 #include "chrome/browser/extensions/pending_extension_manager.h" | 39 #include "chrome/browser/extensions/pending_extension_manager.h" |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 | 704 |
| 706 // The normal profile associated with this ExtensionService. | 705 // The normal profile associated with this ExtensionService. |
| 707 Profile* profile_; | 706 Profile* profile_; |
| 708 | 707 |
| 709 // The ExtensionSystem for the profile above. | 708 // The ExtensionSystem for the profile above. |
| 710 ExtensionSystem* system_; | 709 ExtensionSystem* system_; |
| 711 | 710 |
| 712 // Preferences for the owning profile (weak reference). | 711 // Preferences for the owning profile (weak reference). |
| 713 ExtensionPrefs* extension_prefs_; | 712 ExtensionPrefs* extension_prefs_; |
| 714 | 713 |
| 715 // The ExtensionGarbageCollector associated with this service; this is | |
| 716 // responsible for cleaning up old or partially deleted extensions. | |
| 717 scoped_ptr<extensions::ExtensionGarbageCollector> | |
| 718 extension_garbage_collector_; | |
| 719 | |
| 720 // Settings for the owning profile. | 714 // Settings for the owning profile. |
| 721 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; | 715 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; |
| 722 | 716 |
| 723 // The current list of installed extensions. | 717 // The current list of installed extensions. |
| 724 ExtensionSet extensions_; | 718 ExtensionSet extensions_; |
| 725 | 719 |
| 726 // The list of installed extensions that have been disabled. | 720 // The list of installed extensions that have been disabled. |
| 727 ExtensionSet disabled_extensions_; | 721 ExtensionSet disabled_extensions_; |
| 728 | 722 |
| 729 // The list of installed extensions that have been terminated. | 723 // The list of installed extensions that have been terminated. |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 scoped_ptr<ExtensionGlobalError> extension_global_error_; | 851 scoped_ptr<ExtensionGlobalError> extension_global_error_; |
| 858 | 852 |
| 859 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 853 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 860 InstallAppsWithUnlimtedStorage); | 854 InstallAppsWithUnlimtedStorage); |
| 861 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 855 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 862 InstallAppsAndCheckStorageProtection); | 856 InstallAppsAndCheckStorageProtection); |
| 863 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 857 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 864 }; | 858 }; |
| 865 | 859 |
| 866 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 860 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |