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

Side by Side Diff: third_party/WebKit/Source/core/dom/TreeShared.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 14 matching lines...) Expand all
25 #include "wtf/Assertions.h" 25 #include "wtf/Assertions.h"
26 #include "wtf/Noncopyable.h" 26 #include "wtf/Noncopyable.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 #if ENABLE(SECURITY_ASSERT) 30 #if ENABLE(SECURITY_ASSERT)
31 template<typename NodeType> class TreeShared; 31 template<typename NodeType> class TreeShared;
32 template<typename NodeType> void adopted(TreeShared<NodeType>*); 32 template<typename NodeType> void adopted(TreeShared<NodeType>*);
33 #endif 33 #endif
34 34
35 template<typename NodeType> class TreeShared : public NoBaseWillBeGarbageCollect edFinalized<NodeType> { 35 template<typename NodeType> class TreeShared : public GarbageCollectedFinalized< NodeType> {
36 WTF_MAKE_NONCOPYABLE(TreeShared); 36 WTF_MAKE_NONCOPYABLE(TreeShared);
37 protected: 37 protected:
38 TreeShared() 38 TreeShared()
39 : m_refCount(1) 39 : m_refCount(1)
40 #if ENABLE(SECURITY_ASSERT) 40 #if ENABLE(SECURITY_ASSERT)
41 , m_deletionHasBegun(false) 41 , m_deletionHasBegun(false)
42 #if ENABLE(ASSERT) 42 #if ENABLE(ASSERT)
43 , m_inRemovedLastRefFunction(false) 43 , m_inRemovedLastRefFunction(false)
44 , m_adoptionIsRequired(true) 44 , m_adoptionIsRequired(true)
45 #endif 45 #endif
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 #if ENABLE(ASSERT) 110 #if ENABLE(ASSERT)
111 ASSERT(!object->m_inRemovedLastRefFunction); 111 ASSERT(!object->m_inRemovedLastRefFunction);
112 object->m_adoptionIsRequired = false; 112 object->m_adoptionIsRequired = false;
113 #endif 113 #endif
114 } 114 }
115 #endif 115 #endif
116 116
117 } // namespace blink 117 } // namespace blink
118 118
119 #endif // TreeShared.h 119 #endif // TreeShared.h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/TreeScopeTest.cpp ('k') | third_party/WebKit/Source/core/dom/TreeWalker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698