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

Unified Diff: trunk/src/extensions/browser/extensions_browser_client.h

Issue 399153002: Revert 283678 "Refactor code that defers extension background pa..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/extensions/DEPS ('k') | trunk/src/extensions/browser/process_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/extensions/browser/extensions_browser_client.h
===================================================================
--- trunk/src/extensions/browser/extensions_browser_client.h (revision 283800)
+++ trunk/src/extensions/browser/extensions_browser_client.h (working copy)
@@ -41,7 +41,6 @@
class ExtensionSystem;
class ExtensionSystemProvider;
class InfoMap;
-class ProcessManagerDelegate;
class RuntimeAPIDelegate;
// Interface to allow the extensions module to make browser-process-specific
@@ -134,10 +133,13 @@
content::BrowserContext* context,
std::vector<ExtensionPrefsObserver*>* observers) const = 0;
- // Returns the ProcessManagerDelegate shared across all BrowserContexts. May
- // return NULL in tests or for simple embedders.
- virtual ProcessManagerDelegate* GetProcessManagerDelegate() const = 0;
+ // Returns true if loading background pages should be deferred.
+ virtual bool DeferLoadingBackgroundHosts(
+ content::BrowserContext* context) const = 0;
+ virtual bool IsBackgroundPageAllowed(
+ content::BrowserContext* context) const = 0;
+
// Creates a new ExtensionHostDelegate instance.
virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() = 0;
« no previous file with comments | « trunk/src/extensions/DEPS ('k') | trunk/src/extensions/browser/process_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698