| OLD | NEW |
| 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 "platform/wtf/Assertions.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 enum class UnionTypeConversionMode { | 13 enum class UnionTypeConversionMode { |
| 14 Nullable, | 14 Nullable, |
| 15 NotNullable, | 15 NotNullable, |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 template <typename T> | 18 template <typename T> |
| 19 class Nullable { | 19 class Nullable { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 DEFINE_INLINE_TRACE() { TraceIfNeeded<T>::trace(visitor, m_value); } | 71 DEFINE_INLINE_TRACE() { TraceIfNeeded<T>::trace(visitor, m_value); } |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 T m_value; | 74 T m_value; |
| 75 bool m_isNull; | 75 bool m_isNull; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace blink | 78 } // namespace blink |
| 79 | 79 |
| 80 #endif // Nullable_h | 80 #endif // Nullable_h |
| OLD | NEW |