| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |