| 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/api/api_resource_controller.h" |
| 25 #include "chrome/browser/extensions/app_shortcut_manager.h" | 26 #include "chrome/browser/extensions/app_shortcut_manager.h" |
| 26 #include "chrome/browser/extensions/app_sync_bundle.h" | 27 #include "chrome/browser/extensions/app_sync_bundle.h" |
| 27 #include "chrome/browser/extensions/apps_promo.h" | 28 #include "chrome/browser/extensions/apps_promo.h" |
| 28 #include "chrome/browser/extensions/extension_icon_manager.h" | 29 #include "chrome/browser/extensions/extension_icon_manager.h" |
| 29 #include "chrome/browser/extensions/extension_menu_manager.h" | 30 #include "chrome/browser/extensions/extension_menu_manager.h" |
| 30 #include "chrome/browser/extensions/extension_prefs.h" | 31 #include "chrome/browser/extensions/extension_prefs.h" |
| 31 #include "chrome/browser/extensions/extension_process_manager.h" | 32 #include "chrome/browser/extensions/extension_process_manager.h" |
| 32 #include "chrome/browser/extensions/extension_sync_bundle.h" | 33 #include "chrome/browser/extensions/extension_sync_bundle.h" |
| 33 #include "chrome/browser/extensions/extension_toolbar_model.h" | 34 #include "chrome/browser/extensions/extension_toolbar_model.h" |
| 34 #include "chrome/browser/extensions/extension_warning_set.h" | 35 #include "chrome/browser/extensions/extension_warning_set.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 class SyncData; | 68 class SyncData; |
| 68 class SyncErrorFactory; | 69 class SyncErrorFactory; |
| 69 class Version; | 70 class Version; |
| 70 | 71 |
| 71 namespace chromeos { | 72 namespace chromeos { |
| 72 class ExtensionBluetoothEventRouter; | 73 class ExtensionBluetoothEventRouter; |
| 73 class ExtensionInputMethodEventRouter; | 74 class ExtensionInputMethodEventRouter; |
| 74 } | 75 } |
| 75 | 76 |
| 76 namespace extensions { | 77 namespace extensions { |
| 77 class APIResourceController; | |
| 78 class AppSyncData; | 78 class AppSyncData; |
| 79 class ComponentLoader; | 79 class ComponentLoader; |
| 80 class ContentSettingsStore; | 80 class ContentSettingsStore; |
| 81 class Extension; | 81 class Extension; |
| 82 class ExtensionCookiesEventRouter; | 82 class ExtensionCookiesEventRouter; |
| 83 class ExtensionSyncData; | 83 class ExtensionSyncData; |
| 84 class ExtensionUpdater; | 84 class ExtensionUpdater; |
| 85 class SettingsFrontend; | 85 class SettingsFrontend; |
| 86 class WebNavigationEventRouter; | 86 class WebNavigationEventRouter; |
| 87 } | 87 } |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 bool update_once_all_providers_are_ready_; | 830 bool update_once_all_providers_are_ready_; |
| 831 | 831 |
| 832 NaClModuleInfoList nacl_module_list_; | 832 NaClModuleInfoList nacl_module_list_; |
| 833 | 833 |
| 834 extensions::AppSyncBundle app_sync_bundle_; | 834 extensions::AppSyncBundle app_sync_bundle_; |
| 835 extensions::ExtensionSyncBundle extension_sync_bundle_; | 835 extensions::ExtensionSyncBundle extension_sync_bundle_; |
| 836 | 836 |
| 837 // Contains an entry for each warning that shall be currently shown. | 837 // Contains an entry for each warning that shall be currently shown. |
| 838 ExtensionWarningSet extension_warnings_; | 838 ExtensionWarningSet extension_warnings_; |
| 839 | 839 |
| 840 // We need to control destruction of this object (it needs to happen on the | 840 scoped_ptr<extensions::APIResourceController> api_resource_controller_; |
| 841 // IO thread), so we don't get to use any RAII devices with it. | |
| 842 extensions::APIResourceController* api_resource_controller_; | |
| 843 | 841 |
| 844 extensions::ProcessMap process_map_; | 842 extensions::ProcessMap process_map_; |
| 845 | 843 |
| 846 AppShortcutManager app_shortcut_manager_; | 844 AppShortcutManager app_shortcut_manager_; |
| 847 | 845 |
| 848 scoped_ptr<ExtensionGlobalError> extension_global_error_; | 846 scoped_ptr<ExtensionGlobalError> extension_global_error_; |
| 849 | 847 |
| 850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 851 InstallAppsWithUnlimtedStorage); | 849 InstallAppsWithUnlimtedStorage); |
| 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 853 InstallAppsAndCheckStorageProtection); | 851 InstallAppsAndCheckStorageProtection); |
| 854 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 852 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 855 }; | 853 }; |
| 856 | 854 |
| 857 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 855 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |