Index: third_party/WebKit/Source/wtf/HashTable.h |
diff --git a/third_party/WebKit/Source/wtf/HashTable.h b/third_party/WebKit/Source/wtf/HashTable.h |
index 2afcfba70189a2ce23dcbd70bc11168a516c8317..8c398e58257e2c61f21de1ae41234a22dcba6a21 100644 |
--- a/third_party/WebKit/Source/wtf/HashTable.h |
+++ b/third_party/WebKit/Source/wtf/HashTable.h |
@@ -86,6 +86,19 @@ |
namespace WTF { |
+// This is for tracing inside collections that have special support for weak |
+// pointers. The trait has a trace method which returns true if there are weak |
+// pointers to things that have not (yet) been marked live. Returning true |
+// indicates that the entry in the collection may yet be removed by weak |
+// handling. Default implementation for non-weak types is to use the regular |
+// non-weak TraceTrait. Default implementation for types with weakness is to |
+// call traceInCollection on the type's trait. |
+template <WeakHandlingFlag weakHandlingFlag, |
+ ShouldWeakPointersBeMarkedStrongly strongify, |
+ typename T, |
+ typename Traits> |
+struct TraceInCollectionTrait; |
+ |
#if DUMP_HASHTABLE_STATS |
struct WTF_EXPORT HashTableStats { |
HashTableStats() |