| 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 15 matching lines...) Expand all Loading... |
| 26 #include "wtf/MainThread.h" | 26 #include "wtf/MainThread.h" |
| 27 #include "wtf/Noncopyable.h" | 27 #include "wtf/Noncopyable.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 #if ENABLE(SECURITY_ASSERT) | 31 #if ENABLE(SECURITY_ASSERT) |
| 32 template<typename NodeType> class TreeShared; | 32 template<typename NodeType> class TreeShared; |
| 33 template<typename NodeType> void adopted(TreeShared<NodeType>*); | 33 template<typename NodeType> void adopted(TreeShared<NodeType>*); |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 template<typename NodeType> class TreeShared : public DummyBase<NodeType> { | 36 template<typename NodeType> class TreeShared { |
| 37 WTF_MAKE_NONCOPYABLE(TreeShared); | 37 WTF_MAKE_NONCOPYABLE(TreeShared); |
| 38 protected: | 38 protected: |
| 39 TreeShared() | 39 TreeShared() |
| 40 : m_refCount(1) | 40 : m_refCount(1) |
| 41 #if ENABLE(SECURITY_ASSERT) | 41 #if ENABLE(SECURITY_ASSERT) |
| 42 , m_deletionHasBegun(false) | 42 , m_deletionHasBegun(false) |
| 43 #if ENABLE(ASSERT) | 43 #if ENABLE(ASSERT) |
| 44 , m_inRemovedLastRefFunction(false) | 44 , m_inRemovedLastRefFunction(false) |
| 45 , m_adoptionIsRequired(true) | 45 , m_adoptionIsRequired(true) |
| 46 #endif | 46 #endif |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 #if ENABLE(ASSERT) | 111 #if ENABLE(ASSERT) |
| 112 ASSERT(!object->m_inRemovedLastRefFunction); | 112 ASSERT(!object->m_inRemovedLastRefFunction); |
| 113 object->m_adoptionIsRequired = false; | 113 object->m_adoptionIsRequired = false; |
| 114 #endif | 114 #endif |
| 115 } | 115 } |
| 116 #endif | 116 #endif |
| 117 | 117 |
| 118 } | 118 } |
| 119 | 119 |
| 120 #endif // TreeShared.h | 120 #endif // TreeShared.h |
| OLD | NEW |