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

Unified Diff: base/pending_task.h

Issue 2068833003: base: Make TaskQueue a typedef instead of a subclass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « base/message_loop/incoming_task_queue.cc ('k') | base/pending_task.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/pending_task.h
diff --git a/base/pending_task.h b/base/pending_task.h
index fd0b883026eb355dad7c5ccb92017a8e5a45e94b..c31ab9af264745c19042267d52aa0646edd83cb9 100644
--- a/base/pending_task.h
+++ b/base/pending_task.h
@@ -46,15 +46,10 @@ struct BASE_EXPORT PendingTask : public TrackingInfo {
bool is_high_res;
};
-// Wrapper around std::queue specialized for PendingTask which adds a Swap
-// helper method.
-class BASE_EXPORT TaskQueue : public std::queue<PendingTask> {
- public:
- void Swap(TaskQueue* queue);
-};
+using TaskQueue = std::queue<PendingTask>;
// PendingTasks are sorted by their |delayed_run_time| property.
-typedef std::priority_queue<base::PendingTask> DelayedTaskQueue;
+using DelayedTaskQueue = std::priority_queue<base::PendingTask>;
} // namespace base
« no previous file with comments | « base/message_loop/incoming_task_queue.cc ('k') | base/pending_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698