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

Side by Side Diff: third_party/WebKit/Source/wtf/RefPtr.h

Issue 2518253002: Move Partition Allocator into Chromium base. (Closed)
Patch Set: Move OOM_CRASH into its own, more specific header. Fixes Windows build. Created 4 years 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) 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 "wtf/Allocator.h"
26 #include "wtf/HashTableDeletedValueType.h" 26 #include "wtf/HashTableDeletedValueType.h"
27 #include "wtf/PassRefPtr.h" 27 #include "wtf/PassRefPtr.h"
28 #include "wtf/allocator/PartitionAllocator.h"
28 #include <algorithm> 29 #include <algorithm>
29 #include <utility> 30 #include <utility>
30 31
31 namespace WTF { 32 namespace WTF {
32 33
33 template <typename T> 34 template <typename T>
34 class PassRefPtr; 35 class PassRefPtr;
35 template <typename T> 36 template <typename T>
36 class RefPtrValuePeeker; 37 class RefPtrValuePeeker;
37 38
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 206
206 private: 207 private:
207 T* m_ptr; 208 T* m_ptr;
208 }; 209 };
209 210
210 } // namespace WTF 211 } // namespace WTF
211 212
212 using WTF::RefPtr; 213 using WTF::RefPtr;
213 214
214 #endif // WTF_RefPtr_h 215 #endif // WTF_RefPtr_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698