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 28 matching lines...) Expand all Loading... |
39 #include "chrome/browser/prefs/pref_change_registrar.h" | 39 #include "chrome/browser/prefs/pref_change_registrar.h" |
40 #include "chrome/common/extensions/extension.h" | 40 #include "chrome/common/extensions/extension.h" |
41 #include "chrome/common/extensions/extension_constants.h" | 41 #include "chrome/common/extensions/extension_constants.h" |
42 #include "chrome/common/extensions/extension_set.h" | 42 #include "chrome/common/extensions/extension_set.h" |
43 #include "content/public/browser/browser_thread.h" | 43 #include "content/public/browser/browser_thread.h" |
44 #include "content/public/browser/notification_observer.h" | 44 #include "content/public/browser/notification_observer.h" |
45 #include "content/public/browser/notification_registrar.h" | 45 #include "content/public/browser/notification_registrar.h" |
46 #include "sync/api/sync_change.h" | 46 #include "sync/api/sync_change.h" |
47 #include "sync/api/syncable_service.h" | 47 #include "sync/api/syncable_service.h" |
48 | 48 |
49 class AppNotificationManager; | |
50 class BookmarkExtensionEventRouter; | 49 class BookmarkExtensionEventRouter; |
51 class ExtensionErrorUI; | 50 class ExtensionErrorUI; |
52 class ExtensionFontSettingsEventRouter; | 51 class ExtensionFontSettingsEventRouter; |
53 class ExtensionManagementEventRouter; | 52 class ExtensionManagementEventRouter; |
54 class ExtensionPreferenceEventRouter; | 53 class ExtensionPreferenceEventRouter; |
55 class ExtensionSyncData; | 54 class ExtensionSyncData; |
56 class ExtensionToolbarModel; | 55 class ExtensionToolbarModel; |
57 class HistoryExtensionEventRouter; | 56 class HistoryExtensionEventRouter; |
58 class GURL; | 57 class GURL; |
59 class Profile; | 58 class Profile; |
60 class Version; | 59 class Version; |
61 | 60 |
62 namespace chromeos { | 61 namespace chromeos { |
63 class ExtensionBluetoothEventRouter; | 62 class ExtensionBluetoothEventRouter; |
64 class ExtensionInputMethodEventRouter; | 63 class ExtensionInputMethodEventRouter; |
65 } | 64 } |
66 | 65 |
67 namespace extensions { | 66 namespace extensions { |
| 67 class AppNotificationManager; |
68 class AppSyncData; | 68 class AppSyncData; |
69 class BrowserEventRouter; | 69 class BrowserEventRouter; |
70 class ComponentLoader; | 70 class ComponentLoader; |
71 class ContentSettingsStore; | 71 class ContentSettingsStore; |
72 class CrxInstaller; | 72 class CrxInstaller; |
73 class Extension; | 73 class Extension; |
74 class ExtensionCookiesEventRouter; | 74 class ExtensionCookiesEventRouter; |
75 class ExtensionManagedModeEventRouter; | 75 class ExtensionManagedModeEventRouter; |
76 class ExtensionSyncData; | 76 class ExtensionSyncData; |
77 class ExtensionSystem; | 77 class ExtensionSystem; |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 | 488 |
489 // Note that this may return NULL if autoupdate is not turned on. | 489 // Note that this may return NULL if autoupdate is not turned on. |
490 extensions::ExtensionUpdater* updater(); | 490 extensions::ExtensionUpdater* updater(); |
491 | 491 |
492 ExtensionToolbarModel* toolbar_model() { return &toolbar_model_; } | 492 ExtensionToolbarModel* toolbar_model() { return &toolbar_model_; } |
493 | 493 |
494 ExtensionsQuotaService* quota_service() { return "a_service_; } | 494 ExtensionsQuotaService* quota_service() { return "a_service_; } |
495 | 495 |
496 extensions::MenuManager* menu_manager() { return &menu_manager_; } | 496 extensions::MenuManager* menu_manager() { return &menu_manager_; } |
497 | 497 |
498 AppNotificationManager* app_notification_manager() { | 498 extensions::AppNotificationManager* app_notification_manager() { |
499 return app_notification_manager_.get(); | 499 return app_notification_manager_.get(); |
500 } | 500 } |
501 | 501 |
502 extensions::BrowserEventRouter* browser_event_router() { | 502 extensions::BrowserEventRouter* browser_event_router() { |
503 return browser_event_router_.get(); | 503 return browser_event_router_.get(); |
504 } | 504 } |
505 | 505 |
506 extensions::WindowEventRouter* window_event_router() { | 506 extensions::WindowEventRouter* window_event_router() { |
507 return window_event_router_.get(); | 507 return window_event_router_.get(); |
508 } | 508 } |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 content::NotificationRegistrar registrar_; | 781 content::NotificationRegistrar registrar_; |
782 PrefChangeRegistrar pref_change_registrar_; | 782 PrefChangeRegistrar pref_change_registrar_; |
783 | 783 |
784 // Keeps track of loading and unloading component extensions. | 784 // Keeps track of loading and unloading component extensions. |
785 scoped_ptr<extensions::ComponentLoader> component_loader_; | 785 scoped_ptr<extensions::ComponentLoader> component_loader_; |
786 | 786 |
787 // Keeps track of menu items added by extensions. | 787 // Keeps track of menu items added by extensions. |
788 extensions::MenuManager menu_manager_; | 788 extensions::MenuManager menu_manager_; |
789 | 789 |
790 // Keeps track of app notifications. | 790 // Keeps track of app notifications. |
791 scoped_refptr<AppNotificationManager> app_notification_manager_; | 791 scoped_refptr<extensions::AppNotificationManager> app_notification_manager_; |
792 | 792 |
793 // Keeps track of favicon-sized omnibox icons for extensions. | 793 // Keeps track of favicon-sized omnibox icons for extensions. |
794 ExtensionIconManager omnibox_icon_manager_; | 794 ExtensionIconManager omnibox_icon_manager_; |
795 ExtensionIconManager omnibox_popup_icon_manager_; | 795 ExtensionIconManager omnibox_popup_icon_manager_; |
796 | 796 |
797 // Manages the promotion of the web store. | 797 // Manages the promotion of the web store. |
798 AppsPromo apps_promo_; | 798 AppsPromo apps_promo_; |
799 | 799 |
800 // Flag to make sure event routers are only initialized once. | 800 // Flag to make sure event routers are only initialized once. |
801 bool event_routers_initialized_; | 801 bool event_routers_initialized_; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 scoped_ptr<ExtensionErrorUI> extension_error_ui_; | 854 scoped_ptr<ExtensionErrorUI> extension_error_ui_; |
855 | 855 |
856 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 856 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
857 InstallAppsWithUnlimtedStorage); | 857 InstallAppsWithUnlimtedStorage); |
858 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 858 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
859 InstallAppsAndCheckStorageProtection); | 859 InstallAppsAndCheckStorageProtection); |
860 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 860 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
861 }; | 861 }; |
862 | 862 |
863 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 863 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |