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 "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* s_instance; | 20 static DeathAwareScriptWrappable* s_instance; |
21 static bool s_hasDied; | 21 static bool s_hasDied; |
22 | 22 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 Member<DeathAwareScriptWrappable> m_rawDependency; | 81 Member<DeathAwareScriptWrappable> m_rawDependency; |
82 Wrapper m_wrappedDependency; | 82 Wrapper m_wrappedDependency; |
83 HeapVector<Wrapper> m_wrappedVectorDependency; | 83 HeapVector<Wrapper> m_wrappedVectorDependency; |
84 HeapHashMap<Wrapper, Wrapper> m_wrappedHashMapDependency; | 84 HeapHashMap<Wrapper, Wrapper> m_wrappedHashMapDependency; |
85 }; | 85 }; |
86 | 86 |
87 } // namespace blink | 87 } // namespace blink |
88 | 88 |
89 #endif // DeathAwareScriptWrappable_h | 89 #endif // DeathAwareScriptWrappable_h |
OLD | NEW |