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

Side by Side Diff: third_party/WebKit/Source/platform/wtf/StdLibExtras.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 10 matching lines...) Expand all
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WTF_StdLibExtras_h 26 #ifndef WTF_StdLibExtras_h
27 #define WTF_StdLibExtras_h 27 #define WTF_StdLibExtras_h
28 28
29 #include <cstddef> 29 #include <cstddef>
30 #include "base/numerics/safe_conversions.h" 30 #include "base/numerics/safe_conversions.h"
31 #include "wtf/Assertions.h" 31 #include "platform/wtf/Assertions.h"
32 #include "wtf/CPU.h" 32 #include "platform/wtf/CPU.h"
33 #include "wtf/LeakAnnotations.h" 33 #include "platform/wtf/LeakAnnotations.h"
34 #include "wtf/Noncopyable.h" 34 #include "platform/wtf/Noncopyable.h"
35 #include "wtf/TypeTraits.h" 35 #include "platform/wtf/TypeTraits.h"
36 36
37 #if DCHECK_IS_ON() 37 #if DCHECK_IS_ON()
38 #include "wtf/Threading.h" 38 #include "platform/wtf/Threading.h"
39 #endif 39 #endif
40 40
41 // Use |DEFINE_STATIC_LOCAL()| to declare and define a static local variable 41 // Use |DEFINE_STATIC_LOCAL()| to declare and define a static local variable
42 // (|static T;|) so that it is leaked and its destructors are not called at 42 // (|static T;|) so that it is leaked and its destructors are not called at
43 // exit. T may also be a Blink garbage collected object, in which case it is 43 // exit. T may also be a Blink garbage collected object, in which case it is
44 // wrapped up by an off-heap |Persistent<T>| reference to the object, keeping 44 // wrapped up by an off-heap |Persistent<T>| reference to the object, keeping
45 // it alive across GCs. 45 // it alive across GCs.
46 // 46 //
47 // A |DEFINE_STATIC_LOCAL()| static should only be used on the thread it was 47 // A |DEFINE_STATIC_LOCAL()| static should only be used on the thread it was
48 // created on. 48 // created on.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 char (&ArrayLengthHelperFunction(T (&)[0]))[0]; 260 char (&ArrayLengthHelperFunction(T (&)[0]))[0];
261 #endif 261 #endif
262 #define WTF_ARRAY_LENGTH(array) sizeof(::WTF::ArrayLengthHelperFunction(array)) 262 #define WTF_ARRAY_LENGTH(array) sizeof(::WTF::ArrayLengthHelperFunction(array))
263 263
264 } // namespace WTF 264 } // namespace WTF
265 265
266 using WTF::bitwiseCast; 266 using WTF::bitwiseCast;
267 using WTF::safeCast; 267 using WTF::safeCast;
268 268
269 #endif // WTF_StdLibExtras_h 269 #endif // WTF_StdLibExtras_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/StackUtil.h ('k') | third_party/WebKit/Source/platform/wtf/ThreadRestrictionVerifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698