OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 // browser process. | 674 // browser process. |
675 void RegisterNaClModule(const GURL& url, const std::string& mime_type); | 675 void RegisterNaClModule(const GURL& url, const std::string& mime_type); |
676 void UnregisterNaClModule(const GURL& url); | 676 void UnregisterNaClModule(const GURL& url); |
677 | 677 |
678 // Call UpdatePluginListWithNaClModules() after registering or unregistering | 678 // Call UpdatePluginListWithNaClModules() after registering or unregistering |
679 // a NaCl module to see those changes reflected in the PluginList. | 679 // a NaCl module to see those changes reflected in the PluginList. |
680 void UpdatePluginListWithNaClModules(); | 680 void UpdatePluginListWithNaClModules(); |
681 | 681 |
682 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); | 682 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); |
683 | 683 |
| 684 // Returns the flags that should be used with Extension::Create() for an |
| 685 // extension that is already installed. |
| 686 int GetExtensionCreateFlagsForInstalledExtension( |
| 687 const ExtensionInfo* info); |
| 688 |
684 base::WeakPtrFactory<ExtensionService> weak_ptr_factory_; | 689 base::WeakPtrFactory<ExtensionService> weak_ptr_factory_; |
685 | 690 |
686 ScopedRunnableMethodFactory<ExtensionService> method_factory_; | 691 ScopedRunnableMethodFactory<ExtensionService> method_factory_; |
687 | 692 |
688 // The profile this ExtensionService is part of. | 693 // The profile this ExtensionService is part of. |
689 Profile* profile_; | 694 Profile* profile_; |
690 | 695 |
691 // Preferences for the owning profile (weak reference). | 696 // Preferences for the owning profile (weak reference). |
692 ExtensionPrefs* extension_prefs_; | 697 ExtensionPrefs* extension_prefs_; |
693 | 698 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 ExtensionWarningSet extension_warnings_; | 835 ExtensionWarningSet extension_warnings_; |
831 | 836 |
832 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 837 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
833 InstallAppsWithUnlimtedStorage); | 838 InstallAppsWithUnlimtedStorage); |
834 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 839 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
835 InstallAppsAndCheckStorageProtection); | 840 InstallAppsAndCheckStorageProtection); |
836 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 841 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
837 }; | 842 }; |
838 | 843 |
839 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 844 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |