| 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 V8ScriptValueSerializer_h | 5 #ifndef V8ScriptValueSerializer_h |
| 6 #define V8ScriptValueSerializer_h | 6 #define V8ScriptValueSerializer_h |
| 7 | 7 |
| 8 #include <v8.h> |
| 8 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 9 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| 10 #include "bindings/core/v8/SerializationTag.h" | 11 #include "bindings/core/v8/SerializationTag.h" |
| 11 #include "bindings/core/v8/SerializedScriptValue.h" | 12 #include "bindings/core/v8/SerializedScriptValue.h" |
| 12 #include "core/CoreExport.h" | 13 #include "core/CoreExport.h" |
| 13 #include "wtf/Allocator.h" | 14 #include "wtf/Allocator.h" |
| 14 #include "wtf/Noncopyable.h" | 15 #include "wtf/Noncopyable.h" |
| 15 #include "wtf/RefPtr.h" | 16 #include "wtf/RefPtr.h" |
| 16 #include <v8.h> | |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class File; | 20 class File; |
| 21 class Transferables; | 21 class Transferables; |
| 22 | 22 |
| 23 // Serializes V8 values according to the HTML structured clone algorithm: | 23 // Serializes V8 values according to the HTML structured clone algorithm: |
| 24 // https://html.spec.whatwg.org/multipage/infrastructure.html#structured-clone | 24 // https://html.spec.whatwg.org/multipage/infrastructure.html#structured-clone |
| 25 // | 25 // |
| 26 // Supports only basic JavaScript objects and core DOM types. Support for | 26 // Supports only basic JavaScript objects and core DOM types. Support for |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 ArrayBufferArray m_sharedArrayBuffers; | 98 ArrayBufferArray m_sharedArrayBuffers; |
| 99 | 99 |
| 100 #if DCHECK_IS_ON() | 100 #if DCHECK_IS_ON() |
| 101 bool m_serializeInvoked = false; | 101 bool m_serializeInvoked = false; |
| 102 #endif | 102 #endif |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace blink | 105 } // namespace blink |
| 106 | 106 |
| 107 #endif // V8ScriptValueSerializer_h | 107 #endif // V8ScriptValueSerializer_h |
| OLD | NEW |