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

Side by Side Diff: third_party/WebKit/Source/platform/heap/Member.h

Issue 2065443002: Rename and improve "traceable" templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment rewording Created 4 years, 6 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698