diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 18:55:23 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 18:55:23 +0000 |
commit | b6536df0203bcb40613d40a6ae28a82c6e8a2e95 (patch) | |
tree | d12ed781ce6a46063613a5f6123e8707c9cb0690 /chrome/browser/profiles/profile.h | |
parent | 950ee84c28a20172764da99ed03a4f0d4c9cc371 (diff) | |
download | chromium_src-b6536df0203bcb40613d40a6ae28a82c6e8a2e95.zip chromium_src-b6536df0203bcb40613d40a6ae28a82c6e8a2e95.tar.gz chromium_src-b6536df0203bcb40613d40a6ae28a82c6e8a2e95.tar.bz2 |
Lazy background pages now load in response to message passing.
I refactored the pending event stuff so that it handles generic tasks. The
first enqueued task for an extension will start its lazy background page, and
tasks are run once the page finishes loading. Events and messages now share
this mechanism so that either one can activate the page.
BUG=81752
TEST=no
Review URL: https://chromiumcodereview.appspot.com/9704031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127216 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile.h')
-rw-r--r-- | chrome/browser/profiles/profile.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h index c208bce..49037f2 100644 --- a/chrome/browser/profiles/profile.h +++ b/chrome/browser/profiles/profile.h @@ -34,6 +34,7 @@ class FaviconService; class GAIAInfoUpdateService; class HistoryService; class HostContentSettingsMap; +class LazyBackgroundTaskQueue; class PasswordStore; class PrefService; class PromoCounter; @@ -239,6 +240,10 @@ class Profile : public content::BrowserContext { virtual ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() = 0; + // Accessor. The instance is created at startup. + // TODO(yoz): this belongs with the ExtensionSystem. + virtual LazyBackgroundTaskQueue* GetLazyBackgroundTaskQueue() = 0; + // Retrieves a pointer to the FaviconService associated with this // profile. The FaviconService is lazily created the first time // that this method is called. |