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

Unified Diff: content/browser/indexed_db/list_set.h

Issue 2601983002: [IndexedDB] Adding transaction and value support to observers (Closed)
Patch Set: Moved transaction creation to SendObservations Created 3 years, 11 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: 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) {
jsbell 2017/01/13 00:14:12 Add test case to list_set_unittest.cc ?
dmurph 2017/01/13 01:50:43 Done.
+ 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;

Powered by Google App Engine
This is Rietveld 408576698