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

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

Issue 2091713002: Specialize base::IsWeakReceiver for Blink weak pointers to support base::Bind (1/5) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +#include for build fix Created 4 years, 5 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 #include "wtf/HashTraits.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 template<typename T> class Persistent; 14 template<typename T> class Persistent;
14 15
15 // Members are used in classes to contain strong pointers to other oilpan heap 16 // Members are used in classes to contain strong pointers to other oilpan heap
16 // allocated objects. 17 // allocated objects.
17 // All Member fields of a class must be traced in the class' trace method. 18 // All Member fields of a class must be traced in the class' trace method.
18 // During the mark phase of the GC all live objects are marked as live and 19 // During the mark phase of the GC all live objects are marked as live and
19 // all Member fields of a live object will be traced marked as live as well. 20 // all Member fields of a live object will be traced marked as live as well.
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 315
315 template<typename T> 316 template<typename T>
316 struct IsTraceable<blink::WeakMember<T>> { 317 struct IsTraceable<blink::WeakMember<T>> {
317 STATIC_ONLY(IsTraceable); 318 STATIC_ONLY(IsTraceable);
318 static const bool value = true; 319 static const bool value = true;
319 }; 320 };
320 321
321 } // namespace WTF 322 } // namespace WTF
322 323
323 #endif // Member_h 324 #endif // Member_h
324
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/CrossThreadCopier.h ('k') | third_party/WebKit/Source/platform/heap/Persistent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698