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

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: rerebase Created 8 years, 9 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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 // browser process. 700 // browser process.
700 void RegisterNaClModule(const GURL& url, const std::string& mime_type); 701 void RegisterNaClModule(const GURL& url, const std::string& mime_type);
701 void UnregisterNaClModule(const GURL& url); 702 void UnregisterNaClModule(const GURL& url);
702 703
703 // Call UpdatePluginListWithNaClModules() after registering or unregistering 704 // Call UpdatePluginListWithNaClModules() after registering or unregistering
704 // a NaCl module to see those changes reflected in the PluginList. 705 // a NaCl module to see those changes reflected in the PluginList.
705 void UpdatePluginListWithNaClModules(); 706 void UpdatePluginListWithNaClModules();
706 707
707 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); 708 NaClModuleInfoList::iterator FindNaClModule(const GURL& url);
708 709
709 // The profile this ExtensionService is part of. 710 // The normal profile associated with this ExtensionService.
710 Profile* profile_; 711 Profile* profile_;
711 712
713 // The ExtensionSystem for the profile above.
714 ExtensionSystem* system_;
715
712 // Preferences for the owning profile (weak reference). 716 // Preferences for the owning profile (weak reference).
713 ExtensionPrefs* extension_prefs_; 717 ExtensionPrefs* extension_prefs_;
714 718
715 // Settings for the owning profile. 719 // Settings for the owning profile.
716 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; 720 scoped_ptr<extensions::SettingsFrontend> settings_frontend_;
717 721
718 // The current list of installed extensions. 722 // The current list of installed extensions.
719 // TODO(aa): This should use chrome/common/extensions/extension_set.h. 723 // TODO(aa): This should use chrome/common/extensions/extension_set.h.
720 ExtensionSet extensions_; 724 ExtensionSet extensions_;
721 725
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 scoped_ptr<ExtensionGlobalError> extension_global_error_; 854 scoped_ptr<ExtensionGlobalError> extension_global_error_;
851 855
852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 856 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
853 InstallAppsWithUnlimtedStorage); 857 InstallAppsWithUnlimtedStorage);
854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 858 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
855 InstallAppsAndCheckStorageProtection); 859 InstallAppsAndCheckStorageProtection);
856 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 860 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
857 }; 861 };
858 862
859 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 863 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_message_handler.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698