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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 class ExtensionFontSettingsEventRouter; | 49 class ExtensionFontSettingsEventRouter; |
50 class ExtensionManagementEventRouter; | 50 class ExtensionManagementEventRouter; |
51 class ExtensionSyncData; | 51 class ExtensionSyncData; |
52 class ExtensionToolbarModel; | 52 class ExtensionToolbarModel; |
53 class HistoryExtensionEventRouter; | 53 class HistoryExtensionEventRouter; |
54 class GURL; | 54 class GURL; |
55 class Profile; | 55 class Profile; |
56 class Version; | 56 class Version; |
57 | 57 |
58 namespace chromeos { | 58 namespace chromeos { |
59 class ExtensionBluetoothEventRouter; | |
60 class ExtensionInputMethodEventRouter; | 59 class ExtensionInputMethodEventRouter; |
61 } | 60 } |
62 | 61 |
63 namespace extensions { | 62 namespace extensions { |
64 class AppNotificationManager; | 63 class AppNotificationManager; |
65 class AppSyncData; | 64 class AppSyncData; |
66 class BrowserEventRouter; | 65 class BrowserEventRouter; |
67 class ComponentLoader; | 66 class ComponentLoader; |
68 class ContentSettingsStore; | 67 class ContentSettingsStore; |
69 class CrxInstaller; | 68 class CrxInstaller; |
70 class Extension; | 69 class Extension; |
71 class ExtensionActionStorageManager; | 70 class ExtensionActionStorageManager; |
| 71 class ExtensionBluetoothEventRouter; |
72 class ExtensionCookiesEventRouter; | 72 class ExtensionCookiesEventRouter; |
73 class ExtensionManagedModeEventRouter; | 73 class ExtensionManagedModeEventRouter; |
74 class ExtensionSyncData; | 74 class ExtensionSyncData; |
75 class ExtensionSystem; | 75 class ExtensionSystem; |
76 class ExtensionUpdater; | 76 class ExtensionUpdater; |
77 class FontSettingsEventRouter; | 77 class FontSettingsEventRouter; |
78 class MediaGalleriesPrivateEventRouter; | 78 class MediaGalleriesPrivateEventRouter; |
79 class PendingExtensionManager; | 79 class PendingExtensionManager; |
80 class PreferenceEventRouter; | 80 class PreferenceEventRouter; |
81 class PushMessagingEventRouter; | 81 class PushMessagingEventRouter; |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 } | 512 } |
513 | 513 |
514 extensions::BrowserEventRouter* browser_event_router() { | 514 extensions::BrowserEventRouter* browser_event_router() { |
515 return browser_event_router_.get(); | 515 return browser_event_router_.get(); |
516 } | 516 } |
517 | 517 |
518 extensions::WindowEventRouter* window_event_router() { | 518 extensions::WindowEventRouter* window_event_router() { |
519 return window_event_router_.get(); | 519 return window_event_router_.get(); |
520 } | 520 } |
521 | 521 |
522 #if defined(OS_CHROMEOS) | 522 extensions::ExtensionBluetoothEventRouter* bluetooth_event_router() { |
523 chromeos::ExtensionBluetoothEventRouter* bluetooth_event_router() { | |
524 return bluetooth_event_router_.get(); | 523 return bluetooth_event_router_.get(); |
525 } | 524 } |
| 525 |
| 526 #if defined(OS_CHROMEOS) |
526 chromeos::ExtensionInputMethodEventRouter* input_method_event_router() { | 527 chromeos::ExtensionInputMethodEventRouter* input_method_event_router() { |
527 return input_method_event_router_.get(); | 528 return input_method_event_router_.get(); |
528 } | 529 } |
529 #endif | 530 #endif |
530 | 531 |
531 extensions::PushMessagingEventRouter* push_messaging_event_router() { | 532 extensions::PushMessagingEventRouter* push_messaging_event_router() { |
532 return push_messaging_event_router_.get(); | 533 return push_messaging_event_router_.get(); |
533 } | 534 } |
534 | 535 |
535 // Notify the frontend that there was an error loading an extension. | 536 // Notify the frontend that there was an error loading an extension. |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 scoped_ptr<extensions::PushMessagingEventRouter> | 855 scoped_ptr<extensions::PushMessagingEventRouter> |
855 push_messaging_event_router_; | 856 push_messaging_event_router_; |
856 | 857 |
857 scoped_ptr<extensions::WebNavigationEventRouter> web_navigation_event_router_; | 858 scoped_ptr<extensions::WebNavigationEventRouter> web_navigation_event_router_; |
858 | 859 |
859 scoped_ptr<extensions::FontSettingsEventRouter> font_settings_event_router_; | 860 scoped_ptr<extensions::FontSettingsEventRouter> font_settings_event_router_; |
860 | 861 |
861 scoped_ptr<extensions::ExtensionManagedModeEventRouter> | 862 scoped_ptr<extensions::ExtensionManagedModeEventRouter> |
862 managed_mode_event_router_; | 863 managed_mode_event_router_; |
863 | 864 |
| 865 scoped_ptr<extensions::ExtensionBluetoothEventRouter> bluetooth_event_router_; |
| 866 |
864 #if defined(OS_CHROMEOS) | 867 #if defined(OS_CHROMEOS) |
865 scoped_ptr<chromeos::ExtensionBluetoothEventRouter> bluetooth_event_router_; | |
866 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> | 868 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> |
867 input_method_event_router_; | 869 input_method_event_router_; |
868 #endif | 870 #endif |
869 | 871 |
870 // A collection of external extension providers. Each provider reads | 872 // A collection of external extension providers. Each provider reads |
871 // a source of external extension information. Examples include the | 873 // a source of external extension information. Examples include the |
872 // windows registry and external_extensions.json. | 874 // windows registry and external_extensions.json. |
873 extensions::ProviderCollection external_extension_providers_; | 875 extensions::ProviderCollection external_extension_providers_; |
874 | 876 |
875 // Set to true by OnExternalExtensionUpdateUrlFound() when an external | 877 // Set to true by OnExternalExtensionUpdateUrlFound() when an external |
(...skipping 23 matching lines...) Expand all Loading... |
899 #endif | 901 #endif |
900 | 902 |
901 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 903 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
902 InstallAppsWithUnlimtedStorage); | 904 InstallAppsWithUnlimtedStorage); |
903 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 905 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
904 InstallAppsAndCheckStorageProtection); | 906 InstallAppsAndCheckStorageProtection); |
905 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 907 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
906 }; | 908 }; |
907 | 909 |
908 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 910 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |