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

Side by Side Diff: tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.h

Issue 2061143002: gc plugin: remove ScriptWrappable destructor special case. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698