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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
687 // browser process. | 687 // browser process. |
688 void RegisterNaClModule(const GURL& url, const std::string& mime_type); | 688 void RegisterNaClModule(const GURL& url, const std::string& mime_type); |
689 void UnregisterNaClModule(const GURL& url); | 689 void UnregisterNaClModule(const GURL& url); |
690 | 690 |
691 // Call UpdatePluginListWithNaClModules() after registering or unregistering | 691 // Call UpdatePluginListWithNaClModules() after registering or unregistering |
692 // a NaCl module to see those changes reflected in the PluginList. | 692 // a NaCl module to see those changes reflected in the PluginList. |
693 void UpdatePluginListWithNaClModules(); | 693 void UpdatePluginListWithNaClModules(); |
694 | 694 |
695 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); | 695 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); |
696 | 696 |
697 // Sets up preferences for a newly installed extension in a new data | |
698 // directory. |page_ordinal| is order the extension should show up in the NTP. | |
jeremy
2012/02/12 09:40:28
nit: *is -> is the
benwells
2012/02/13 02:55:44
Some info about what happens to the preferences in
benwells
2012/02/13 02:55:44
Can this be done elsewhere? Moving it into AppShor
| |
699 void SetupExtensionPrefsInSeparateDataDirectory( | |
700 const Extension* extension, | |
701 bool from_webstore, | |
702 const StringOrdinal& page_ordinal); | |
703 | |
697 // The profile this ExtensionService is part of. | 704 // The profile this ExtensionService is part of. |
698 Profile* profile_; | 705 Profile* profile_; |
699 | 706 |
700 // Preferences for the owning profile (weak reference). | 707 // Preferences for the owning profile (weak reference). |
701 ExtensionPrefs* extension_prefs_; | 708 ExtensionPrefs* extension_prefs_; |
702 | 709 |
703 // Settings for the owning profile. | 710 // Settings for the owning profile. |
704 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; | 711 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; |
705 | 712 |
706 // The current list of installed extensions. | 713 // The current list of installed extensions. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
836 scoped_ptr<ExtensionGlobalError> extension_global_error_; | 843 scoped_ptr<ExtensionGlobalError> extension_global_error_; |
837 | 844 |
838 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 845 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
839 InstallAppsWithUnlimtedStorage); | 846 InstallAppsWithUnlimtedStorage); |
840 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 847 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
841 InstallAppsAndCheckStorageProtection); | 848 InstallAppsAndCheckStorageProtection); |
842 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 849 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
843 }; | 850 }; |
844 | 851 |
845 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 852 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |