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

Unified Diff: third_party/WebKit/Source/wtf/HashCountedSet.h

Issue 2191633003: Move ResourceClient to Oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onheap-raw-resource-client
Patch Set: build fix Created 4 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 | « third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashCountedSet.h
diff --git a/third_party/WebKit/Source/wtf/HashCountedSet.h b/third_party/WebKit/Source/wtf/HashCountedSet.h
index b96b8c2d4fb7f949bd0c71333080dfbd708bc99e..f80793c496c05e7b819a5864e05f56e53f486f95 100644
--- a/third_party/WebKit/Source/wtf/HashCountedSet.h
+++ b/third_party/WebKit/Source/wtf/HashCountedSet.h
@@ -86,6 +86,8 @@ public:
// Clears the whole set.
void clear() { m_impl.clear(); }
+ Vector<Value> asVector() const;
+
template <typename VisitorDispatcher>
void trace(VisitorDispatcher visitor) { m_impl.trace(visitor); }
@@ -150,6 +152,14 @@ inline void copyToVector(const HashCountedSet<Value, HashFunctions, Traits, Allo
vector[i] = (*it).key;
}
+template <typename T, typename U, typename V, typename W>
+inline Vector<T> HashCountedSet<T, U, V, W>::asVector() const
+{
+ Vector<T> vector;
+ copyToVector(*this, vector);
+ return vector;
+}
+
} // namespace WTF
using WTF::HashCountedSet;
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698