Chromium Code Reviews| Index: extensions/browser/process_manager_delegate.h |
| diff --git a/extensions/browser/process_manager_delegate.h b/extensions/browser/process_manager_delegate.h |
| index 7cc48c0af74ee81ab9db0e1eddc88bcbe1580e10..2e5838c31f343d189a57e662af0fd24e086c80d0 100644 |
| --- a/extensions/browser/process_manager_delegate.h |
| +++ b/extensions/browser/process_manager_delegate.h |
| @@ -11,6 +11,8 @@ class BrowserContext; |
| namespace extensions { |
| +class Extension; |
| + |
| // Customization of ProcessManager for the extension system embedder. |
| class ProcessManagerDelegate { |
| public: |
| @@ -18,9 +20,15 @@ class ProcessManagerDelegate { |
| // Returns true if the embedder allows background pages for the given |
| // |context|. |
| - virtual bool IsBackgroundPageAllowed( |
| + virtual bool AreBackgroundPagesAllowedForContext( |
| content::BrowserContext* context) const = 0; |
| + // Returns true if the embedder allows background pages for the given |
| + // |context|, and a given |extension|. |
| + virtual bool IsExtensionBackgroundPageAllowed( |
| + content::BrowserContext* context, |
| + const Extension* extension) const = 0; |
|
Devlin
2017/03/22 22:57:39
|extension| can no longer be null, right? Can be
achuithb
2017/03/23 00:26:26
Done.
|
| + |
| // Returns true if the embedder wishes to defer starting up the renderers for |
| // extension background pages. If the embedder returns true it must call |
| // ProcessManager::MaybeCreateStartupBackgroundHosts() when it is ready. See |