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

Side by Side Diff: extensions/browser/process_manager_delegate.h

Issue 381283002: Refactor code that defers extension background page loading (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on top of chrome_browser_extensions.gypi GN changes 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « extensions/browser/process_manager.cc ('k') | extensions/browser/process_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef EXTENSIONS_BROWSER_PROCESS_MANAGER_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_PROCESS_MANAGER_DELEGATE_H_
7
8 namespace content {
9 class BrowserContext;
10 };
11
12 namespace extensions {
13
14 // Customization of ProcessManager for the extension system embedder.
15 class ProcessManagerDelegate {
16 public:
17 virtual ~ProcessManagerDelegate() {}
18
19 // Returns true if the embedder allows background pages for the given
20 // |context|.
21 virtual bool IsBackgroundPageAllowed(
22 content::BrowserContext* context) const = 0;
23
24 // 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
26 // ProcessManager::MaybeCreateStartupBackgroundHosts() when it is ready. See
27 // ChromeProcessManagerDelegate for examples of how this is useful.
28 virtual bool DeferCreatingStartupBackgroundHosts(
29 content::BrowserContext* context) const = 0;
30 };
31
32 } // namespace extensions
33
34 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_DELEGATE_H_
OLDNEW
« 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