| 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> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 class BookmarkExtensionEventRouter; | 51 class BookmarkExtensionEventRouter; |
| 52 class CrxInstaller; | 52 class CrxInstaller; |
| 53 class ExtensionBrowserEventRouter; | 53 class ExtensionBrowserEventRouter; |
| 54 class ExtensionContentSettingsStore; | 54 class ExtensionContentSettingsStore; |
| 55 class ExtensionCookiesEventRouter; | 55 class ExtensionCookiesEventRouter; |
| 56 class ExtensionDownloadsEventRouter; | 56 class ExtensionDownloadsEventRouter; |
| 57 class ExtensionFontSettingsEventRouter; | 57 class ExtensionFontSettingsEventRouter; |
| 58 class ExtensionGlobalError; | 58 class ExtensionGlobalError; |
| 59 class ExtensionManagementEventRouter; | 59 class ExtensionManagementEventRouter; |
| 60 class ExtensionPreferenceEventRouter; | 60 class ExtensionPreferenceEventRouter; |
| 61 class ExtensionSuggestedLinksManager; |
| 61 class ExtensionSyncData; | 62 class ExtensionSyncData; |
| 62 class ExtensionSystem; | 63 class ExtensionSystem; |
| 63 class ExtensionToolbarModel; | 64 class ExtensionToolbarModel; |
| 64 class HistoryExtensionEventRouter; | 65 class HistoryExtensionEventRouter; |
| 65 class GURL; | 66 class GURL; |
| 66 class PendingExtensionManager; | 67 class PendingExtensionManager; |
| 67 class Profile; | 68 class Profile; |
| 68 class SyncData; | 69 class SyncData; |
| 69 class SyncErrorFactory; | 70 class SyncErrorFactory; |
| 70 class Version; | 71 class Version; |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 ExtensionToolbarModel* toolbar_model() { return &toolbar_model_; } | 492 ExtensionToolbarModel* toolbar_model() { return &toolbar_model_; } |
| 492 | 493 |
| 493 ExtensionsQuotaService* quota_service() { return "a_service_; } | 494 ExtensionsQuotaService* quota_service() { return "a_service_; } |
| 494 | 495 |
| 495 ExtensionMenuManager* menu_manager() { return &menu_manager_; } | 496 ExtensionMenuManager* menu_manager() { return &menu_manager_; } |
| 496 | 497 |
| 497 AppNotificationManager* app_notification_manager() { | 498 AppNotificationManager* app_notification_manager() { |
| 498 return app_notification_manager_.get(); | 499 return app_notification_manager_.get(); |
| 499 } | 500 } |
| 500 | 501 |
| 502 ExtensionSuggestedLinksManager* suggested_link_manager() { |
| 503 return extension_suggested_links_manager_.get(); |
| 504 } |
| 505 |
| 501 ExtensionBrowserEventRouter* browser_event_router() { | 506 ExtensionBrowserEventRouter* browser_event_router() { |
| 502 return browser_event_router_.get(); | 507 return browser_event_router_.get(); |
| 503 } | 508 } |
| 504 | 509 |
| 505 #if defined(OS_CHROMEOS) | 510 #if defined(OS_CHROMEOS) |
| 506 chromeos::ExtensionBluetoothEventRouter* bluetooth_event_router() { | 511 chromeos::ExtensionBluetoothEventRouter* bluetooth_event_router() { |
| 507 return bluetooth_event_router_.get(); | 512 return bluetooth_event_router_.get(); |
| 508 } | 513 } |
| 509 chromeos::ExtensionInputMethodEventRouter* input_method_event_router() { | 514 chromeos::ExtensionInputMethodEventRouter* input_method_event_router() { |
| 510 return input_method_event_router_.get(); | 515 return input_method_event_router_.get(); |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 | 780 |
| 776 // Keeps track of loading and unloading component extensions. | 781 // Keeps track of loading and unloading component extensions. |
| 777 scoped_ptr<extensions::ComponentLoader> component_loader_; | 782 scoped_ptr<extensions::ComponentLoader> component_loader_; |
| 778 | 783 |
| 779 // Keeps track of menu items added by extensions. | 784 // Keeps track of menu items added by extensions. |
| 780 ExtensionMenuManager menu_manager_; | 785 ExtensionMenuManager menu_manager_; |
| 781 | 786 |
| 782 // Keeps track of app notifications. | 787 // Keeps track of app notifications. |
| 783 scoped_refptr<AppNotificationManager> app_notification_manager_; | 788 scoped_refptr<AppNotificationManager> app_notification_manager_; |
| 784 | 789 |
| 790 // Keeps track of the links suggested by an extension. |
| 791 scoped_refptr<ExtensionSuggestedLinksManager> |
| 792 extension_suggested_links_manager_; |
| 793 |
| 785 // Keeps track of favicon-sized omnibox icons for extensions. | 794 // Keeps track of favicon-sized omnibox icons for extensions. |
| 786 ExtensionIconManager omnibox_icon_manager_; | 795 ExtensionIconManager omnibox_icon_manager_; |
| 787 ExtensionIconManager omnibox_popup_icon_manager_; | 796 ExtensionIconManager omnibox_popup_icon_manager_; |
| 788 | 797 |
| 789 // Manages the promotion of the web store. | 798 // Manages the promotion of the web store. |
| 790 AppsPromo apps_promo_; | 799 AppsPromo apps_promo_; |
| 791 | 800 |
| 792 // Flag to make sure event routers are only initialized once. | 801 // Flag to make sure event routers are only initialized once. |
| 793 bool event_routers_initialized_; | 802 bool event_routers_initialized_; |
| 794 | 803 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 scoped_ptr<ExtensionGlobalError> extension_global_error_; | 856 scoped_ptr<ExtensionGlobalError> extension_global_error_; |
| 848 | 857 |
| 849 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 858 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 850 InstallAppsWithUnlimtedStorage); | 859 InstallAppsWithUnlimtedStorage); |
| 851 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 860 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 852 InstallAppsAndCheckStorageProtection); | 861 InstallAppsAndCheckStorageProtection); |
| 853 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 862 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 854 }; | 863 }; |
| 855 | 864 |
| 856 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 865 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |