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

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

Issue 2705413003: Move oom.h into partition_allocator. (Closed)
Patch Set: Update the BUILD.gn file too. 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) 2003, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 15 matching lines...) Expand all
26 26
27 #ifndef WTF_Assertions_h 27 #ifndef WTF_Assertions_h
28 #define WTF_Assertions_h 28 #define WTF_Assertions_h
29 29
30 // This file uses some GCC extensions, but it should be compatible with C++ and 30 // This file uses some GCC extensions, but it should be compatible with C++ and
31 // Objective C++. 31 // Objective C++.
32 // 32 //
33 // For non-debug builds, everything is disabled by default, except for the 33 // For non-debug builds, everything is disabled by default, except for the
34 // RELEASE_ASSERT family of macros. 34 // RELEASE_ASSERT family of macros.
35 35
36 #include "base/allocator/oom.h" 36 #include <stdarg.h>
37 #include "base/allocator/partition_allocator/oom.h"
37 #include "base/gtest_prod_util.h" 38 #include "base/gtest_prod_util.h"
38 #include "base/logging.h" 39 #include "base/logging.h"
39 #include "wtf/Compiler.h" 40 #include "wtf/Compiler.h"
40 #include "wtf/Noncopyable.h" 41 #include "wtf/Noncopyable.h"
41 #include "wtf/WTFExport.h" 42 #include "wtf/WTFExport.h"
42 #include "wtf/build_config.h" 43 #include "wtf/build_config.h"
43 #include <stdarg.h>
44 44
45 #if OS(WIN) 45 #if OS(WIN)
46 #include <windows.h> 46 #include <windows.h>
47 #endif 47 #endif
48 48
49 #ifndef LOG_DISABLED 49 #ifndef LOG_DISABLED
50 #define LOG_DISABLED !DCHECK_IS_ON() 50 #define LOG_DISABLED !DCHECK_IS_ON()
51 #endif 51 #endif
52 52
53 // WTFLogAlways() is deprecated. crbug.com/638849 53 // WTFLogAlways() is deprecated. crbug.com/638849
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 return static_cast<thisType&>(argument); \ 249 return static_cast<thisType&>(argument); \
250 } \ 250 } \
251 inline const thisType& to##thisType##OrDie(const argumentType& argument) { \ 251 inline const thisType& to##thisType##OrDie(const argumentType& argument) { \
252 CHECK(referencePredicate); \ 252 CHECK(referencePredicate); \
253 return static_cast<const thisType&>(argument); \ 253 return static_cast<const thisType&>(argument); \
254 } \ 254 } \
255 void to##thisType##OrDie(const thisType*); \ 255 void to##thisType##OrDie(const thisType*); \
256 void to##thisType##OrDie(const thisType&) 256 void to##thisType##OrDie(const thisType&)
257 257
258 #endif // WTF_Assertions_h 258 #endif // WTF_Assertions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698