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

Unified Diff: extensions/browser/process_manager_delegate.h

Issue 2149953002: Enable login screen apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Stefan feedback Created 3 years, 9 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 | « extensions/browser/process_manager.cc ('k') | extensions/browser/process_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..31d17bdc8d21faa4cf936ac218c67fa8398f6f94 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;
+
// 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
« no previous file with comments | « extensions/browser/process_manager.cc ('k') | extensions/browser/process_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698