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

Side by Side 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: Additional IsBackgroundPageAllowed check 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_PROCESS_MANAGER_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_PROCESS_MANAGER_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_PROCESS_MANAGER_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_PROCESS_MANAGER_DELEGATE_H_
7 7
8 namespace content { 8 namespace content {
9 class BrowserContext; 9 class BrowserContext;
10 }; 10 };
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class Extension;
15
14 // Customization of ProcessManager for the extension system embedder. 16 // Customization of ProcessManager for the extension system embedder.
15 class ProcessManagerDelegate { 17 class ProcessManagerDelegate {
16 public: 18 public:
17 virtual ~ProcessManagerDelegate() {} 19 virtual ~ProcessManagerDelegate() {}
18 20
19 // Returns true if the embedder allows background pages for the given 21 // Returns true if the embedder allows background pages for the given
20 // |context|. 22 // |context|.
emaxx 2017/03/08 17:11:25 nit: Please update the comment to talk about |exte
Devlin 2017/03/08 17:24:32 Can it be null?
achuithb 2017/03/09 14:31:06 Done.
achuithb 2017/03/09 14:31:06 Yes, there's 2 places where IsBackgroundPageAllowe
21 virtual bool IsBackgroundPageAllowed( 23 virtual bool IsBackgroundPageAllowed(content::BrowserContext* context,
22 content::BrowserContext* context) const = 0; 24 const Extension* extension) const = 0;
23 25
24 // Returns true if the embedder wishes to defer starting up the renderers for 26 // Returns true if the embedder wishes to defer starting up the renderers for
25 // extension background pages. If the embedder returns true it must call 27 // extension background pages. If the embedder returns true it must call
26 // ProcessManager::MaybeCreateStartupBackgroundHosts() when it is ready. See 28 // ProcessManager::MaybeCreateStartupBackgroundHosts() when it is ready. See
27 // ChromeProcessManagerDelegate for examples of how this is useful. 29 // ChromeProcessManagerDelegate for examples of how this is useful.
28 virtual bool DeferCreatingStartupBackgroundHosts( 30 virtual bool DeferCreatingStartupBackgroundHosts(
29 content::BrowserContext* context) const = 0; 31 content::BrowserContext* context) const = 0;
30 }; 32 };
31 33
32 } // namespace extensions 34 } // namespace extensions
33 35
34 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_DELEGATE_H_ 36 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698