| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef WTF_RefPtr_h | 22 #ifndef WTF_RefPtr_h |
| 23 #define WTF_RefPtr_h | 23 #define WTF_RefPtr_h |
| 24 | 24 |
| 25 #include <algorithm> |
| 26 #include <utility> |
| 25 #include "wtf/Allocator.h" | 27 #include "wtf/Allocator.h" |
| 26 #include "wtf/HashTableDeletedValueType.h" | 28 #include "wtf/HashTableDeletedValueType.h" |
| 27 #include "wtf/PassRefPtr.h" | 29 #include "wtf/PassRefPtr.h" |
| 28 #include "wtf/allocator/PartitionAllocator.h" | 30 #include "wtf/allocator/PartitionAllocator.h" |
| 29 #include <algorithm> | |
| 30 #include <utility> | |
| 31 | 31 |
| 32 namespace WTF { | 32 namespace WTF { |
| 33 | 33 |
| 34 template <typename T> | 34 template <typename T> |
| 35 class PassRefPtr; | 35 class PassRefPtr; |
| 36 template <typename T> | 36 template <typename T> |
| 37 class RefPtrValuePeeker; | 37 class RefPtrValuePeeker; |
| 38 | 38 |
| 39 template <typename T> | 39 template <typename T> |
| 40 class RefPtr { | 40 class RefPtr { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 206 |
| 207 private: | 207 private: |
| 208 T* m_ptr; | 208 T* m_ptr; |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 } // namespace WTF | 211 } // namespace WTF |
| 212 | 212 |
| 213 using WTF::RefPtr; | 213 using WTF::RefPtr; |
| 214 | 214 |
| 215 #endif // WTF_RefPtr_h | 215 #endif // WTF_RefPtr_h |
| OLD | NEW |