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

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

Issue 2128773003: Rename DISALLOW_ALLOCATION to DISALLOW_NEW (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 FIELDS_ILLEGAL_TRACING_H_ 5 #ifndef FIELDS_ILLEGAL_TRACING_H_
6 #define FIELDS_ILLEGAL_TRACING_H_ 6 #define FIELDS_ILLEGAL_TRACING_H_
7 7
8 #include "heap/stubs.h" 8 #include "heap/stubs.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 12 matching lines...) Expand all
23 { 23 {
24 } 24 }
25 }; 25 };
26 26
27 } 27 }
28 28
29 class HeapObject; 29 class HeapObject;
30 class PartObject; 30 class PartObject;
31 31
32 class PartObject { 32 class PartObject {
33 DISALLOW_ALLOCATION(); 33 DISALLOW_NEW();
34 public: 34 public:
35 void trace(Visitor*); 35 void trace(Visitor*);
36 private: 36 private:
37 OwnPtr<HeapObject> m_obj1; 37 OwnPtr<HeapObject> m_obj1;
38 RefPtr<HeapObject> m_obj2; 38 RefPtr<HeapObject> m_obj2;
39 bar::unique_ptr<HeapObject> m_obj3; 39 bar::unique_ptr<HeapObject> m_obj3;
40 std::unique_ptr<HeapObject> m_obj4; 40 std::unique_ptr<HeapObject> m_obj4;
41 }; 41 };
42 42
43 class HeapObject : public GarbageCollectedFinalized<HeapObject> { 43 class HeapObject : public GarbageCollectedFinalized<HeapObject> {
44 public: 44 public:
45 void trace(Visitor*); 45 void trace(Visitor*);
46 private: 46 private:
47 PartObject m_part; 47 PartObject m_part;
48 OwnPtr<HeapObject> m_obj1; 48 OwnPtr<HeapObject> m_obj1;
49 RefPtr<HeapObject> m_obj2; 49 RefPtr<HeapObject> m_obj2;
50 bar::unique_ptr<HeapObject> m_obj3; 50 bar::unique_ptr<HeapObject> m_obj3;
51 std::unique_ptr<HeapObject> m_obj4; 51 std::unique_ptr<HeapObject> m_obj4;
52 }; 52 };
53 53
54 } 54 }
55 55
56 #endif 56 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698