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

Side by Side Diff: third_party/WebKit/Source/wtf/LinkedHashSet.h

Issue 2518253002: Move Partition Allocator into Chromium base. (Closed)
Patch Set: Move OOM_CRASH into its own, more specific header. Fixes Windows build. Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2011, Benjamin Poulain <ikipou@gmail.com> 4 * Copyright (C) 2011, Benjamin Poulain <ikipou@gmail.com>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 private: 151 private:
152 WTF_MAKE_NONCOPYABLE(LinkedHashSetNode); 152 WTF_MAKE_NONCOPYABLE(LinkedHashSetNode);
153 }; 153 };
154 154
155 template <typename ValueArg, 155 template <typename ValueArg,
156 typename HashFunctions = typename DefaultHash<ValueArg>::Hash, 156 typename HashFunctions = typename DefaultHash<ValueArg>::Hash,
157 typename TraitsArg = HashTraits<ValueArg>, 157 typename TraitsArg = HashTraits<ValueArg>,
158 typename Allocator = PartitionAllocator> 158 typename Allocator = PartitionAllocator>
159 class LinkedHashSet { 159 class LinkedHashSet {
160 WTF_USE_ALLOCATOR(LinkedHashSet, Allocator); 160 USE_ALLOCATOR(LinkedHashSet, Allocator);
161 161
162 private: 162 private:
163 typedef ValueArg Value; 163 typedef ValueArg Value;
164 typedef TraitsArg Traits; 164 typedef TraitsArg Traits;
165 typedef LinkedHashSetNode<Value, Allocator> Node; 165 typedef LinkedHashSetNode<Value, Allocator> Node;
166 typedef LinkedHashSetNodeBase NodeBase; 166 typedef LinkedHashSetNodeBase NodeBase;
167 typedef LinkedHashSetTranslator<Value, HashFunctions, Allocator> 167 typedef LinkedHashSetTranslator<Value, HashFunctions, Allocator>
168 NodeHashFunctions; 168 NodeHashFunctions;
169 typedef LinkedHashSetTraits<Value, Traits, Allocator> NodeHashTraits; 169 typedef LinkedHashSetTraits<Value, Traits, Allocator> NodeHashTraits;
170 170
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 swap(static_cast<Base&>(a), static_cast<Base&>(b)); 925 swap(static_cast<Base&>(a), static_cast<Base&>(b));
926 swap(a.m_value, b.m_value); 926 swap(a.m_value, b.m_value);
927 Allocator::leaveGCForbiddenScope(); 927 Allocator::leaveGCForbiddenScope();
928 } 928 }
929 929
930 } // namespace WTF 930 } // namespace WTF
931 931
932 using WTF::LinkedHashSet; 932 using WTF::LinkedHashSet;
933 933
934 #endif /* WTF_LinkedHashSet_h */ 934 #endif /* WTF_LinkedHashSet_h */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698