| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 GarbageCollected_h | 5 #ifndef GarbageCollected_h |
| 6 #define GarbageCollected_h | 6 #define GarbageCollected_h |
| 7 | 7 |
| 8 #include "platform/heap/ThreadState.h" | 8 #include "platform/heap/ThreadState.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "platform/wtf/Allocator.h" |
| 10 #include "wtf/Assertions.h" | 10 #include "platform/wtf/Assertions.h" |
| 11 #include "wtf/TypeTraits.h" | 11 #include "platform/wtf/TypeTraits.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 template <typename T> | 15 template <typename T> |
| 16 class GarbageCollected; | 16 class GarbageCollected; |
| 17 | 17 |
| 18 // GC_PLUGIN_IGNORE is used to make the plugin ignore a particular class or | 18 // GC_PLUGIN_IGNORE is used to make the plugin ignore a particular class or |
| 19 // field when checking for proper usage. When using GC_PLUGIN_IGNORE | 19 // field when checking for proper usage. When using GC_PLUGIN_IGNORE |
| 20 // a bug-number should be provided as an argument where the bug describes | 20 // a bug-number should be provided as an argument where the bug describes |
| 21 // what needs to happen to remove the GC_PLUGIN_IGNORE again. | 21 // what needs to happen to remove the GC_PLUGIN_IGNORE again. |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 static FalseType isSizeofKnown(...); | 259 static FalseType isSizeofKnown(...); |
| 260 static T& t; | 260 static T& t; |
| 261 | 261 |
| 262 public: | 262 public: |
| 263 static const bool value = sizeof(TrueType) == sizeof(isSizeofKnown(&t)); | 263 static const bool value = sizeof(TrueType) == sizeof(isSizeofKnown(&t)); |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 } // namespace blink | 266 } // namespace blink |
| 267 | 267 |
| 268 #endif | 268 #endif |
| OLD | NEW |