Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 11442074: Lazy initialization for ExtensionInputMethodEventRouter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 class ExtensionToolbarModel; 47 class ExtensionToolbarModel;
48 class HistoryExtensionEventRouter; 48 class HistoryExtensionEventRouter;
49 class GURL; 49 class GURL;
50 class Profile; 50 class Profile;
51 class Version; 51 class Version;
52 52
53 namespace base { 53 namespace base {
54 class SequencedTaskRunner; 54 class SequencedTaskRunner;
55 } 55 }
56 56
57 namespace chromeos {
58 class ExtensionInputMethodEventRouter;
59 }
60
61 namespace extensions { 57 namespace extensions {
62 class AppNotificationManager; 58 class AppNotificationManager;
63 class AppSyncData; 59 class AppSyncData;
64 class BrowserEventRouter; 60 class BrowserEventRouter;
65 class ComponentLoader; 61 class ComponentLoader;
66 class ContentSettingsStore; 62 class ContentSettingsStore;
67 class CrxInstaller; 63 class CrxInstaller;
68 class Extension; 64 class Extension;
69 class ExtensionActionStorageManager; 65 class ExtensionActionStorageManager;
70 class ExtensionSyncData; 66 class ExtensionSyncData;
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 extensions::MenuManager* menu_manager() { return &menu_manager_; } 552 extensions::MenuManager* menu_manager() { return &menu_manager_; }
557 553
558 extensions::AppNotificationManager* app_notification_manager() { 554 extensions::AppNotificationManager* app_notification_manager() {
559 return app_notification_manager_.get(); 555 return app_notification_manager_.get();
560 } 556 }
561 557
562 extensions::BrowserEventRouter* browser_event_router() { 558 extensions::BrowserEventRouter* browser_event_router() {
563 return browser_event_router_.get(); 559 return browser_event_router_.get();
564 } 560 }
565 561
566 #if defined(OS_CHROMEOS)
567 chromeos::ExtensionInputMethodEventRouter* input_method_event_router() {
568 return input_method_event_router_.get();
569 }
570 #endif
571
572 extensions::PushMessagingEventRouter* push_messaging_event_router() { 562 extensions::PushMessagingEventRouter* push_messaging_event_router() {
573 return push_messaging_event_router_.get(); 563 return push_messaging_event_router_.get();
574 } 564 }
575 565
576 // Notify the frontend that there was an error loading an extension. 566 // Notify the frontend that there was an error loading an extension.
577 // This method is public because UnpackedInstaller and InstalledLoader 567 // This method is public because UnpackedInstaller and InstalledLoader
578 // can post to here. 568 // can post to here.
579 // TODO(aa): Remove this. It doesn't do enough to be worth the dependency 569 // TODO(aa): Remove this. It doesn't do enough to be worth the dependency
580 // of these classes on ExtensionService. 570 // of these classes on ExtensionService.
581 void ReportExtensionLoadError(const FilePath& extension_path, 571 void ReportExtensionLoadError(const FilePath& extension_path,
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 scoped_ptr<extensions::BrowserEventRouter> browser_event_router_; 959 scoped_ptr<extensions::BrowserEventRouter> browser_event_router_;
970 960
971 scoped_ptr<BookmarkExtensionEventRouter> bookmark_event_router_; 961 scoped_ptr<BookmarkExtensionEventRouter> bookmark_event_router_;
972 962
973 scoped_ptr<extensions::MediaGalleriesPrivateEventRouter> 963 scoped_ptr<extensions::MediaGalleriesPrivateEventRouter>
974 media_galleries_private_event_router_; 964 media_galleries_private_event_router_;
975 965
976 scoped_ptr<extensions::PushMessagingEventRouter> 966 scoped_ptr<extensions::PushMessagingEventRouter>
977 push_messaging_event_router_; 967 push_messaging_event_router_;
978 968
979 #if defined(OS_CHROMEOS)
980 scoped_ptr<chromeos::ExtensionInputMethodEventRouter>
981 input_method_event_router_;
982 #endif
983
984 // A collection of external extension providers. Each provider reads 969 // A collection of external extension providers. Each provider reads
985 // a source of external extension information. Examples include the 970 // a source of external extension information. Examples include the
986 // windows registry and external_extensions.json. 971 // windows registry and external_extensions.json.
987 extensions::ProviderCollection external_extension_providers_; 972 extensions::ProviderCollection external_extension_providers_;
988 973
989 // Set to true by OnExternalExtensionUpdateUrlFound() when an external 974 // Set to true by OnExternalExtensionUpdateUrlFound() when an external
990 // extension URL is found, and by CheckForUpdatesSoon() when an update check 975 // extension URL is found, and by CheckForUpdatesSoon() when an update check
991 // has to wait for the external providers. Used in 976 // has to wait for the external providers. Used in
992 // OnAllExternalProvidersReady() to determine if an update check is needed to 977 // OnAllExternalProvidersReady() to determine if an update check is needed to
993 // install pending extensions. 978 // install pending extensions.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 #endif 1011 #endif
1027 1012
1028 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 1013 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
1029 InstallAppsWithUnlimtedStorage); 1014 InstallAppsWithUnlimtedStorage);
1030 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 1015 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
1031 InstallAppsAndCheckStorageProtection); 1016 InstallAppsAndCheckStorageProtection);
1032 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 1017 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
1033 }; 1018 };
1034 1019
1035 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 1020 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698