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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/Nullable.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef Nullable_h 5 #ifndef Nullable_h
6 #define Nullable_h 6 #define Nullable_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "wtf/Assertions.h" 9 #include "wtf/Assertions.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 template <typename T> 13 template <typename T>
14 class Nullable { 14 class Nullable {
15 DISALLOW_ALLOCATION(); 15 DISALLOW_NEW();
16 public: 16 public:
17 Nullable() 17 Nullable()
18 : m_value() 18 : m_value()
19 , m_isNull(true) { } 19 , m_isNull(true) { }
20 20
21 Nullable(std::nullptr_t) 21 Nullable(std::nullptr_t)
22 : m_value() 22 : m_value()
23 , m_isNull(true) { } 23 , m_isNull(true) { }
24 24
25 Nullable(const T& value) 25 Nullable(const T& value)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 private: 77 private:
78 T m_value; 78 T m_value;
79 bool m_isNull; 79 bool m_isNull;
80 }; 80 };
81 81
82 } // namespace blink 82 } // namespace blink
83 83
84 #endif // Nullable_h 84 #endif // Nullable_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/Dictionary.h ('k') | third_party/WebKit/Source/bindings/core/v8/ScriptPromise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698