| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 DeathAwareScriptWrappable_h | 5 #ifndef DeathAwareScriptWrappable_h |
| 6 #define DeathAwareScriptWrappable_h | 6 #define DeathAwareScriptWrappable_h |
| 7 | 7 |
| 8 #include <signal.h> |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "bindings/core/v8/TraceWrapperMember.h" | 10 #include "bindings/core/v8/TraceWrapperMember.h" |
| 10 #include "platform/heap/Heap.h" | 11 #include "platform/heap/Heap.h" |
| 11 #include "wtf/text/WTFString.h" | 12 #include "platform/wtf/text/WTFString.h" |
| 12 #include <signal.h> | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class DeathAwareScriptWrappable | 16 class DeathAwareScriptWrappable |
| 17 : public GarbageCollectedFinalized<DeathAwareScriptWrappable>, | 17 : public GarbageCollectedFinalized<DeathAwareScriptWrappable>, |
| 18 public ScriptWrappable { | 18 public ScriptWrappable { |
| 19 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
| 20 static DeathAwareScriptWrappable* instance_; | 20 static DeathAwareScriptWrappable* instance_; |
| 21 static bool has_died_; | 21 static bool has_died_; |
| 22 | 22 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 Member<DeathAwareScriptWrappable> raw_dependency_; | 82 Member<DeathAwareScriptWrappable> raw_dependency_; |
| 83 Wrapper wrapped_dependency_; | 83 Wrapper wrapped_dependency_; |
| 84 HeapVector<Wrapper> wrapped_vector_dependency_; | 84 HeapVector<Wrapper> wrapped_vector_dependency_; |
| 85 HeapHashMap<Wrapper, Wrapper> wrapped_hash_map_dependency_; | 85 HeapHashMap<Wrapper, Wrapper> wrapped_hash_map_dependency_; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace blink | 88 } // namespace blink |
| 89 | 89 |
| 90 #endif // DeathAwareScriptWrappable_h | 90 #endif // DeathAwareScriptWrappable_h |
| OLD | NEW |