| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef Member_h | 5 #ifndef Member_h |
| 6 #define Member_h | 6 #define Member_h |
| 7 | 7 |
| 8 #include "wtf/Allocator.h" | 8 #include "wtf/Allocator.h" |
| 9 #include "wtf/HashFunctions.h" | 9 #include "wtf/HashFunctions.h" |
| 10 | 10 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 using Hash = WeakMemberHash<T>; | 304 using Hash = WeakMemberHash<T>; |
| 305 }; | 305 }; |
| 306 | 306 |
| 307 template <typename T> | 307 template <typename T> |
| 308 struct DefaultHash<blink::UntracedMember<T>> { | 308 struct DefaultHash<blink::UntracedMember<T>> { |
| 309 STATIC_ONLY(DefaultHash); | 309 STATIC_ONLY(DefaultHash); |
| 310 using Hash = UntracedMemberHash<T>; | 310 using Hash = UntracedMemberHash<T>; |
| 311 }; | 311 }; |
| 312 | 312 |
| 313 template<typename T> | 313 template<typename T> |
| 314 struct NeedsTracing<blink::Member<T>> { | 314 struct IsTraceable<blink::Member<T>> { |
| 315 STATIC_ONLY(NeedsTracing); | 315 STATIC_ONLY(IsTraceable); |
| 316 static const bool value = true; | 316 static const bool value = true; |
| 317 }; | 317 }; |
| 318 | 318 |
| 319 template<typename T> | 319 template<typename T> |
| 320 struct IsWeak<blink::WeakMember<T>> { | 320 struct IsWeak<blink::WeakMember<T>> { |
| 321 STATIC_ONLY(IsWeak); | 321 STATIC_ONLY(IsWeak); |
| 322 static const bool value = true; | 322 static const bool value = true; |
| 323 }; | 323 }; |
| 324 | 324 |
| 325 template<typename T> |
| 326 struct IsTraceable<blink::WeakMember<T>> { |
| 327 STATIC_ONLY(IsTraceable); |
| 328 static const bool value = true; |
| 329 }; |
| 330 |
| 325 } // namespace WTF | 331 } // namespace WTF |
| 326 | 332 |
| 327 #endif // Member_h | 333 #endif // Member_h |
| 328 | 334 |
| OLD | NEW |