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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
186 virtual ~ExtensionService(); | 186 virtual ~ExtensionService(); |
187 | 187 |
188 // Gets the list of currently installed extensions. | 188 // Gets the list of currently installed extensions. |
189 virtual const ExtensionList* extensions() const OVERRIDE; | 189 virtual const ExtensionList* extensions() const OVERRIDE; |
190 const ExtensionList* disabled_extensions() const; | 190 const ExtensionList* disabled_extensions() const; |
191 const ExtensionList* terminated_extensions() const; | 191 const ExtensionList* terminated_extensions() const; |
192 | 192 |
193 // Gets the object managing the set of pending extensions. | 193 // Gets the object managing the set of pending extensions. |
194 virtual PendingExtensionManager* pending_extension_manager() OVERRIDE; | 194 virtual PendingExtensionManager* pending_extension_manager() OVERRIDE; |
195 | 195 |
196 // Registers or unregisters an extension to delay network requests on startup | |
197 // until the extension's background page has loaded. | |
198 void SetDelaysNetworkRequests(const Extension* extension, bool delays); | |
Aaron Boodman
2011/10/10 22:59:29
Just call ExtensionPrefs directly for a few reason
| |
199 | |
200 // Whether the extension is registered to delay network requests on startup. | |
201 bool DelaysNetworkRequests(const Extension* extension) const; | |
202 | |
196 // Registers an extension to be loaded as a component extension. | 203 // Registers an extension to be loaded as a component extension. |
197 void register_component_extension(const ComponentExtensionInfo& info) { | 204 void register_component_extension(const ComponentExtensionInfo& info) { |
198 component_extension_manifests_.push_back(info); | 205 component_extension_manifests_.push_back(info); |
199 } | 206 } |
200 | 207 |
201 // Unregisters a component extension from the list of extensions to be loaded | 208 // Unregisters a component extension from the list of extensions to be loaded |
202 void UnregisterComponentExtension(const ComponentExtensionInfo& info); | 209 void UnregisterComponentExtension(const ComponentExtensionInfo& info); |
203 | 210 |
204 const FilePath& install_directory() const { return install_directory_; } | 211 const FilePath& install_directory() const { return install_directory_; } |
205 | 212 |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
805 SyncBundle extension_sync_bundle_; | 812 SyncBundle extension_sync_bundle_; |
806 | 813 |
807 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 814 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
808 InstallAppsWithUnlimtedStorage); | 815 InstallAppsWithUnlimtedStorage); |
809 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 816 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
810 InstallAppsAndCheckStorageProtection); | 817 InstallAppsAndCheckStorageProtection); |
811 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 818 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
812 }; | 819 }; |
813 | 820 |
814 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 821 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |