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

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

Issue 9369013: Take extensions out of Profile into a profile-keyed service, ExtensionSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no crashy Created 8 years, 10 months 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 | Annotate | Revision Log
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 #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
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; 56 class ExtensionFileBrowserEventRouter;
57 class ExtensionGlobalError; 57 class ExtensionGlobalError;
58 class ExtensionManagementEventRouter; 58 class ExtensionManagementEventRouter;
59 class ExtensionPreferenceEventRouter; 59 class ExtensionPreferenceEventRouter;
60 class ExtensionSyncData; 60 class ExtensionSyncData;
61 class ExtensionSystem;
61 class ExtensionToolbarModel; 62 class ExtensionToolbarModel;
62 class ExtensionUpdater; 63 class ExtensionUpdater;
63 class ExtensionWebNavigationEventRouter; 64 class ExtensionWebNavigationEventRouter;
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 Version; 70 class Version;
70 71
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 // browser process. 692 // browser process.
692 void RegisterNaClModule(const GURL& url, const std::string& mime_type); 693 void RegisterNaClModule(const GURL& url, const std::string& mime_type);
693 void UnregisterNaClModule(const GURL& url); 694 void UnregisterNaClModule(const GURL& url);
694 695
695 // Call UpdatePluginListWithNaClModules() after registering or unregistering 696 // Call UpdatePluginListWithNaClModules() after registering or unregistering
696 // a NaCl module to see those changes reflected in the PluginList. 697 // a NaCl module to see those changes reflected in the PluginList.
697 void UpdatePluginListWithNaClModules(); 698 void UpdatePluginListWithNaClModules();
698 699
699 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); 700 NaClModuleInfoList::iterator FindNaClModule(const GURL& url);
700 701
701 // The profile this ExtensionService is part of. 702 // The normal profile associated with this ExtensionService.
702 Profile* profile_; 703 Profile* profile_;
703 704
705 // The ExtensionSystem for the profile above.
706 ExtensionSystem* system_;
707
704 // Preferences for the owning profile (weak reference). 708 // Preferences for the owning profile (weak reference).
705 ExtensionPrefs* extension_prefs_; 709 ExtensionPrefs* extension_prefs_;
706 710
707 // Settings for the owning profile. 711 // Settings for the owning profile.
708 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; 712 scoped_ptr<extensions::SettingsFrontend> settings_frontend_;
709 713
710 // The current list of installed extensions. 714 // The current list of installed extensions.
711 // TODO(aa): This should use chrome/common/extensions/extension_set.h. 715 // TODO(aa): This should use chrome/common/extensions/extension_set.h.
712 ExtensionSet extensions_; 716 ExtensionSet extensions_;
713 717
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 scoped_ptr<ExtensionGlobalError> extension_global_error_; 846 scoped_ptr<ExtensionGlobalError> extension_global_error_;
843 847
844 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
845 InstallAppsWithUnlimtedStorage); 849 InstallAppsWithUnlimtedStorage);
846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
847 InstallAppsAndCheckStorageProtection); 851 InstallAppsAndCheckStorageProtection);
848 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 852 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
849 }; 853 };
850 854
851 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 855 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698