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

Unified Diff: chrome/browser/extensions/lazy_background_task_queue.h

Issue 10114015: Fix bug where transient pages would miss events dispatched while it was (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
Index: chrome/browser/extensions/lazy_background_task_queue.h
diff --git a/chrome/browser/extensions/lazy_background_task_queue.h b/chrome/browser/extensions/lazy_background_task_queue.h
index 12b85ba73049d51f84c15d84801464815d0c8deb..96397311698e5431f0bb4df45a51f89162126cee 100644
--- a/chrome/browser/extensions/lazy_background_task_queue.h
+++ b/chrome/browser/extensions/lazy_background_task_queue.h
@@ -7,6 +7,7 @@
#pragma once
#include <map>
+#include <set>
#include <string>
#include "base/compiler_specific.h"
@@ -56,6 +57,10 @@ class LazyBackgroundTaskQueue : public content::NotificationObserver {
typedef std::vector<PendingTask> PendingTasksList;
typedef std::map<PendingTasksKey,
linked_ptr<PendingTasksList> > PendingTasksMap;
+ typedef std::set<PendingTasksKey> PendingPageLoadList;
+
+ void StartLazyBackgroundPage(Profile* profile,
+ const std::string& extension_id);
// content::NotificationObserver interface.
virtual void Observe(int type,
@@ -72,6 +77,7 @@ class LazyBackgroundTaskQueue : public content::NotificationObserver {
Profile* profile_;
content::NotificationRegistrar registrar_;
PendingTasksMap pending_tasks_;
+ PendingPageLoadList pending_page_loads_;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698