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 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 UnloadedExtensionPathMap unloaded_extension_paths_; | 905 UnloadedExtensionPathMap unloaded_extension_paths_; |
906 | 906 |
907 // Map disabled extensions' ids to their paths. When a temporarily loaded | 907 // Map disabled extensions' ids to their paths. When a temporarily loaded |
908 // extension is disabled before it is reloaded, keep track of the path so that | 908 // extension is disabled before it is reloaded, keep track of the path so that |
909 // it can be re-enabled upon a successful load. | 909 // it can be re-enabled upon a successful load. |
910 typedef std::map<std::string, base::FilePath> DisabledExtensionPathMap; | 910 typedef std::map<std::string, base::FilePath> DisabledExtensionPathMap; |
911 DisabledExtensionPathMap disabled_extension_paths_; | 911 DisabledExtensionPathMap disabled_extension_paths_; |
912 | 912 |
913 // Map of inspector cookies that are detached, waiting for an extension to be | 913 // Map of inspector cookies that are detached, waiting for an extension to be |
914 // reloaded. | 914 // reloaded. |
915 typedef std::map<std::string, int> OrphanedDevTools; | 915 typedef std::map<std::string, std::string> OrphanedDevTools; |
916 OrphanedDevTools orphaned_dev_tools_; | 916 OrphanedDevTools orphaned_dev_tools_; |
917 | 917 |
918 // Maps extension ids to a bitmask that indicates which events should be | 918 // Maps extension ids to a bitmask that indicates which events should be |
919 // dispatched to the extension when it is loaded. | 919 // dispatched to the extension when it is loaded. |
920 std::map<std::string, int> on_load_events_; | 920 std::map<std::string, int> on_load_events_; |
921 | 921 |
922 content::NotificationRegistrar registrar_; | 922 content::NotificationRegistrar registrar_; |
923 PrefChangeRegistrar pref_change_registrar_; | 923 PrefChangeRegistrar pref_change_registrar_; |
924 | 924 |
925 // Keeps track of loading and unloading component extensions. | 925 // Keeps track of loading and unloading component extensions. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 #endif | 981 #endif |
982 | 982 |
983 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 983 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
984 InstallAppsWithUnlimtedStorage); | 984 InstallAppsWithUnlimtedStorage); |
985 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 985 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
986 InstallAppsAndCheckStorageProtection); | 986 InstallAppsAndCheckStorageProtection); |
987 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 987 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
988 }; | 988 }; |
989 | 989 |
990 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 990 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |