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

Side by Side Diff: third_party/WebKit/Source/platform/wtf/PassRefPtr.h

Issue 2764833002: Move files in wtf/ to platform/wtf/ (Part 7). (Closed)
Patch Set: Rebase. Created 3 years, 9 months 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 Apple Inc. 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 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 // PassRefPtr will soon be deleted. 22 // PassRefPtr will soon be deleted.
23 // New code should instead pass ownership of the contents of a RefPtr using 23 // New code should instead pass ownership of the contents of a RefPtr using
24 // std::move(). 24 // std::move().
25 25
26 #ifndef WTF_PassRefPtr_h 26 #ifndef WTF_PassRefPtr_h
27 #define WTF_PassRefPtr_h 27 #define WTF_PassRefPtr_h
28 28
29 #include "wtf/Allocator.h" 29 #include "platform/wtf/Allocator.h"
30 #include "wtf/Assertions.h" 30 #include "platform/wtf/Assertions.h"
31 #include "wtf/Compiler.h" 31 #include "platform/wtf/Compiler.h"
32 #include "wtf/TypeTraits.h" 32 #include "platform/wtf/TypeTraits.h"
33 33
34 namespace WTF { 34 namespace WTF {
35 35
36 template <typename T> 36 template <typename T>
37 class RefPtr; 37 class RefPtr;
38 template <typename T> 38 template <typename T>
39 class PassRefPtr; 39 class PassRefPtr;
40 template <typename T> 40 template <typename T>
41 PassRefPtr<T> adoptRef(T*); 41 PassRefPtr<T> adoptRef(T*);
42 42
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 inline T* getPtr(const PassRefPtr<T>& p) { 215 inline T* getPtr(const PassRefPtr<T>& p) {
216 return p.get(); 216 return p.get();
217 } 217 }
218 218
219 } // namespace WTF 219 } // namespace WTF
220 220
221 using WTF::PassRefPtr; 221 using WTF::PassRefPtr;
222 using WTF::adoptRef; 222 using WTF::adoptRef;
223 223
224 #endif // WTF_PassRefPtr_h 224 #endif // WTF_PassRefPtr_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/Locker.h ('k') | third_party/WebKit/Source/platform/wtf/PtrUtil.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698