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 V8ScriptValueDeserializer_h | 5 #ifndef V8ScriptValueDeserializer_h |
6 #define V8ScriptValueDeserializer_h | 6 #define V8ScriptValueDeserializer_h |
7 | 7 |
| 8 #include <v8.h> |
8 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
9 #include "bindings/core/v8/SerializationTag.h" | 10 #include "bindings/core/v8/SerializationTag.h" |
10 #include "bindings/core/v8/SerializedScriptValue.h" | 11 #include "bindings/core/v8/SerializedScriptValue.h" |
11 #include "core/CoreExport.h" | 12 #include "core/CoreExport.h" |
12 #include "wtf/Allocator.h" | 13 #include "wtf/Allocator.h" |
13 #include "wtf/Noncopyable.h" | 14 #include "wtf/Noncopyable.h" |
14 #include "wtf/RefPtr.h" | 15 #include "wtf/RefPtr.h" |
15 #include <v8.h> | |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 | 18 |
19 class File; | 19 class File; |
20 | 20 |
21 // Deserializes V8 values serialized using V8ScriptValueSerializer (or its | 21 // Deserializes V8 values serialized using V8ScriptValueSerializer (or its |
22 // predecessor, ScriptValueSerializer). | 22 // predecessor, ScriptValueSerializer). |
23 // | 23 // |
24 // Supports only basic JavaScript objects and core DOM types. Support for | 24 // Supports only basic JavaScript objects and core DOM types. Support for |
25 // modules types is implemented in a subclass. | 25 // modules types is implemented in a subclass. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // Set during deserialize after the header is read. | 94 // Set during deserialize after the header is read. |
95 uint32_t m_version = 0; | 95 uint32_t m_version = 0; |
96 #if DCHECK_IS_ON() | 96 #if DCHECK_IS_ON() |
97 bool m_deserializeInvoked = false; | 97 bool m_deserializeInvoked = false; |
98 #endif | 98 #endif |
99 }; | 99 }; |
100 | 100 |
101 } // namespace blink | 101 } // namespace blink |
102 | 102 |
103 #endif // V8ScriptValueDeserializer_h | 103 #endif // V8ScriptValueDeserializer_h |
OLD | NEW |