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

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 8205001: (Owner approval for) Delay network requests on startup if any webRequest ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698