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

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

Issue 10830235: Remove obsolete cruft in LazyBackgroundTaskQueue that dealt with queueing up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | chrome/browser/extensions/lazy_background_task_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55980b76b838a96ae07360e151cce06477ee3694..dd612185217cafc41cf7a2c17376106c91df16cf 100644
--- a/chrome/browser/extensions/lazy_background_task_queue.h
+++ b/chrome/browser/extensions/lazy_background_task_queue.h
@@ -6,13 +6,11 @@
#define CHROME_BROWSER_EXTENSIONS_LAZY_BACKGROUND_TASK_QUEUE_H_
#include <map>
-#include <set>
#include <string>
#include "base/compiler_specific.h"
#include "base/callback_forward.h"
#include "base/memory/linked_ptr.h"
-#include "base/memory/weak_ptr.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -28,9 +26,7 @@ class ExtensionHost;
//
// It is the consumer's responsibility to use this class when appropriate, i.e.
// only with extensions that have not-yet-loaded lazy background pages.
-class LazyBackgroundTaskQueue
- : public content::NotificationObserver,
- public base::SupportsWeakPtr<LazyBackgroundTaskQueue> {
+class LazyBackgroundTaskQueue : public content::NotificationObserver {
public:
typedef base::Callback<void(ExtensionHost*)> PendingTask;
@@ -61,10 +57,6 @@ class LazyBackgroundTaskQueue
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,
@@ -81,7 +73,6 @@ class LazyBackgroundTaskQueue
Profile* profile_;
content::NotificationRegistrar registrar_;
PendingTasksMap pending_tasks_;
- PendingPageLoadList pending_page_loads_;
};
} // namespace extensions
« no previous file with comments | « no previous file | chrome/browser/extensions/lazy_background_task_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698