Index: content/browser/indexed_db/list_set.h |
diff --git a/content/browser/indexed_db/list_set.h b/content/browser/indexed_db/list_set.h |
index ab46af20d6533c1c6d57f0ea30f7acc80a7dd270..3bbd34d06a146ca5a674dce82b3ba6af283fe320 100644 |
--- a/content/browser/indexed_db/list_set.h |
+++ b/content/browser/indexed_db/list_set.h |
@@ -33,6 +33,13 @@ class list_set { |
return *this; |
} |
+ void insert_front(const T& elem) { |
+ if (set_.find(elem) != set_.end()) |
+ return; |
+ set_.insert(elem); |
+ list_.push_front(elem); |
+ } |
+ |
void insert(const T& elem) { |
if (set_.find(elem) != set_.end()) |
return; |