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 "wtf/Allocator.h" | 25 #include "platform/wtf/Allocator.h" |
26 #include "wtf/HashTableDeletedValueType.h" | 26 #include "platform/wtf/HashTableDeletedValueType.h" |
27 #include "wtf/PassRefPtr.h" | 27 #include "platform/wtf/PassRefPtr.h" |
28 #include "wtf/allocator/PartitionAllocator.h" | 28 #include "platform/wtf/allocator/PartitionAllocator.h" |
29 #include <algorithm> | 29 #include <algorithm> |
30 #include <utility> | 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 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 private: | 214 private: |
215 T* m_ptr; | 215 T* m_ptr; |
216 }; | 216 }; |
217 | 217 |
218 } // namespace WTF | 218 } // namespace WTF |
219 | 219 |
220 using WTF::RefPtr; | 220 using WTF::RefPtr; |
221 | 221 |
222 #endif // WTF_RefPtr_h | 222 #endif // WTF_RefPtr_h |
OLD | NEW |