OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CLASS_REQUIRES_FINALIZATION_MIXIN_H_ | 5 #ifndef CLASS_REQUIRES_FINALIZATION_MIXIN_H_ |
6 #define CLASS_REQUIRES_FINALIZATION_MIXIN_H_ | 6 #define CLASS_REQUIRES_FINALIZATION_MIXIN_H_ |
7 | 7 |
8 #include "heap/stubs.h" | 8 #include "heap/stubs.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 30 matching lines...) Expand all Loading... |
41 public MixinFinalizable { | 41 public MixinFinalizable { |
42 USING_GARBAGE_COLLECTED_MIXIN(HasFinalizer); | 42 USING_GARBAGE_COLLECTED_MIXIN(HasFinalizer); |
43 public: | 43 public: |
44 virtual void trace(Visitor*) override; | 44 virtual void trace(Visitor*) override; |
45 private: | 45 private: |
46 Member<OnHeap> m_obj; | 46 Member<OnHeap> m_obj; |
47 }; | 47 }; |
48 | 48 |
49 class NeedsNoFinalization | 49 class NeedsNoFinalization |
50 : public GarbageCollected<NeedsNoFinalization> | 50 : public GarbageCollected<NeedsNoFinalization> |
51 , public MixinNotFinalizable | 51 , public MixinNotFinalizable { |
52 , public ScriptWrappable { | |
53 USING_GARBAGE_COLLECTED_MIXIN(NeedsNoFinalization); | 52 USING_GARBAGE_COLLECTED_MIXIN(NeedsNoFinalization); |
54 public: | 53 public: |
55 virtual void trace(Visitor*) override; | 54 virtual void trace(Visitor*) override; |
56 private: | 55 private: |
57 Member<OnHeap> m_obj; | 56 Member<OnHeap> m_obj; |
58 }; | 57 }; |
59 | 58 |
60 } | 59 } |
61 | 60 |
62 #endif | 61 #endif |
OLD | NEW |