| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "content/public/browser/notification_observer.h" | 46 #include "content/public/browser/notification_observer.h" |
| 47 #include "content/public/browser/notification_registrar.h" | 47 #include "content/public/browser/notification_registrar.h" |
| 48 | 48 |
| 49 class AppNotificationManager; | 49 class AppNotificationManager; |
| 50 class BookmarkExtensionEventRouter; | 50 class BookmarkExtensionEventRouter; |
| 51 class CrxInstaller; | 51 class CrxInstaller; |
| 52 class ExtensionBrowserEventRouter; | 52 class ExtensionBrowserEventRouter; |
| 53 class ExtensionContentSettingsStore; | 53 class ExtensionContentSettingsStore; |
| 54 class ExtensionCookiesEventRouter; | 54 class ExtensionCookiesEventRouter; |
| 55 class ExtensionDownloadsEventRouter; | 55 class ExtensionDownloadsEventRouter; |
| 56 class ExtensionFileBrowserEventRouter; | |
| 57 class ExtensionGlobalError; | 56 class ExtensionGlobalError; |
| 58 class ExtensionManagementEventRouter; | 57 class ExtensionManagementEventRouter; |
| 59 class ExtensionPreferenceEventRouter; | 58 class ExtensionPreferenceEventRouter; |
| 60 class ExtensionSyncData; | 59 class ExtensionSyncData; |
| 61 class ExtensionToolbarModel; | 60 class ExtensionToolbarModel; |
| 62 class ExtensionWebNavigationEventRouter; | 61 class ExtensionWebNavigationEventRouter; |
| 63 class HistoryExtensionEventRouter; | 62 class HistoryExtensionEventRouter; |
| 64 class GURL; | 63 class GURL; |
| 65 class PendingExtensionManager; | 64 class PendingExtensionManager; |
| 66 class Profile; | 65 class Profile; |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 | 469 |
| 471 AppNotificationManager* app_notification_manager() { | 470 AppNotificationManager* app_notification_manager() { |
| 472 return app_notification_manager_.get(); | 471 return app_notification_manager_.get(); |
| 473 } | 472 } |
| 474 | 473 |
| 475 ExtensionBrowserEventRouter* browser_event_router() { | 474 ExtensionBrowserEventRouter* browser_event_router() { |
| 476 return browser_event_router_.get(); | 475 return browser_event_router_.get(); |
| 477 } | 476 } |
| 478 | 477 |
| 479 #if defined(OS_CHROMEOS) | 478 #if defined(OS_CHROMEOS) |
| 480 ExtensionFileBrowserEventRouter* file_browser_event_router() { | |
| 481 return file_browser_event_router_.get(); | |
| 482 } | |
| 483 chromeos::ExtensionInputMethodEventRouter* input_method_event_router() { | 479 chromeos::ExtensionInputMethodEventRouter* input_method_event_router() { |
| 484 return input_method_event_router_.get(); | 480 return input_method_event_router_.get(); |
| 485 } | 481 } |
| 486 #endif | 482 #endif |
| 487 | 483 |
| 488 // Notify the frontend that there was an error loading an extension. | 484 // Notify the frontend that there was an error loading an extension. |
| 489 // This method is public because UnpackedInstaller and InstalledLoader | 485 // This method is public because UnpackedInstaller and InstalledLoader |
| 490 // can post to here. | 486 // can post to here. |
| 491 // TODO(aa): Remove this. It doesn't do enough to be worth the dependency | 487 // TODO(aa): Remove this. It doesn't do enough to be worth the dependency |
| 492 // of these classes on ExtensionService. | 488 // of these classes on ExtensionService. |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 | 803 |
| 808 scoped_ptr<BookmarkExtensionEventRouter> bookmark_event_router_; | 804 scoped_ptr<BookmarkExtensionEventRouter> bookmark_event_router_; |
| 809 | 805 |
| 810 scoped_ptr<ExtensionCookiesEventRouter> cookies_event_router_; | 806 scoped_ptr<ExtensionCookiesEventRouter> cookies_event_router_; |
| 811 | 807 |
| 812 scoped_ptr<ExtensionManagementEventRouter> management_event_router_; | 808 scoped_ptr<ExtensionManagementEventRouter> management_event_router_; |
| 813 | 809 |
| 814 scoped_ptr<ExtensionWebNavigationEventRouter> web_navigation_event_router_; | 810 scoped_ptr<ExtensionWebNavigationEventRouter> web_navigation_event_router_; |
| 815 | 811 |
| 816 #if defined(OS_CHROMEOS) | 812 #if defined(OS_CHROMEOS) |
| 817 scoped_ptr<ExtensionFileBrowserEventRouter> file_browser_event_router_; | |
| 818 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> | 813 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> |
| 819 input_method_event_router_; | 814 input_method_event_router_; |
| 820 #endif | 815 #endif |
| 821 | 816 |
| 822 scoped_ptr<extensions::RulesRegistryService> rules_registry_service_; | 817 scoped_ptr<extensions::RulesRegistryService> rules_registry_service_; |
| 823 | 818 |
| 824 // A collection of external extension providers. Each provider reads | 819 // A collection of external extension providers. Each provider reads |
| 825 // a source of external extension information. Examples include the | 820 // a source of external extension information. Examples include the |
| 826 // windows registry and external_extensions.json. | 821 // windows registry and external_extensions.json. |
| 827 ProviderCollection external_extension_providers_; | 822 ProviderCollection external_extension_providers_; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 850 scoped_ptr<ExtensionGlobalError> extension_global_error_; | 845 scoped_ptr<ExtensionGlobalError> extension_global_error_; |
| 851 | 846 |
| 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 847 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 853 InstallAppsWithUnlimtedStorage); | 848 InstallAppsWithUnlimtedStorage); |
| 854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 849 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 855 InstallAppsAndCheckStorageProtection); | 850 InstallAppsAndCheckStorageProtection); |
| 856 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 851 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 857 }; | 852 }; |
| 858 | 853 |
| 859 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 854 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |