| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ScriptValueSerializer_h | 5 #ifndef ScriptValueSerializer_h |
| 6 #define ScriptValueSerializer_h | 6 #define ScriptValueSerializer_h |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "bindings/core/v8/SerializationTag.h" | 9 #include "bindings/core/v8/SerializationTag.h" |
| 10 #include "bindings/core/v8/SerializedScriptValue.h" | 10 #include "bindings/core/v8/SerializedScriptValue.h" |
| 11 #include "bindings/core/v8/V8Binding.h" | 11 #include "bindings/core/v8/V8Binding.h" |
| 12 #include "core/CoreExport.h" | 12 #include "core/CoreExport.h" |
| 13 #include "wtf/HashMap.h" | 13 #include "wtf/HashMap.h" |
| 14 #include "wtf/Noncopyable.h" | 14 #include "wtf/Noncopyable.h" |
| 15 #include "wtf/Vector.h" | 15 #include "wtf/Vector.h" |
| 16 #include "wtf/text/WTFString.h" | 16 #include "wtf/text/WTFString.h" |
| 17 #include "wtf/typed_arrays/ArrayBufferContents.h" | 17 #include "wtf/typed_arrays/ArrayBufferContents.h" |
| 18 #include <v8.h> | 18 #include <v8.h> |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 class CompositorProxy; | 22 class CompositorProxy; |
| 23 class DOMArrayBuffer; | 23 class DOMArrayBuffer; |
| 24 class DOMArrayBufferView; | 24 class DOMArrayBufferView; |
| 25 class DOMSharedArrayBuffer; | |
| 26 class File; | 25 class File; |
| 27 class FileList; | 26 class FileList; |
| 28 class ImageData; | 27 class ImageData; |
| 29 class StaticBitmapImage; | 28 class StaticBitmapImage; |
| 30 | 29 |
| 31 typedef Vector<WTF::ArrayBufferContents, 1> ArrayBufferContentsArray; | 30 typedef Vector<WTF::ArrayBufferContents, 1> ArrayBufferContentsArray; |
| 32 typedef Vector<RefPtr<StaticBitmapImage>, 1> ImageBitmapContentsArray; | 31 typedef Vector<RefPtr<StaticBitmapImage>, 1> ImageBitmapContentsArray; |
| 33 | 32 |
| 34 // V8ObjectMap is a map from V8 objects to arbitrary values of type T. | 33 // V8ObjectMap is a map from V8 objects to arbitrary values of type T. |
| 35 // V8 objects (or handles to V8 objects) cannot be used as keys in ordinary | 34 // V8 objects (or handles to V8 objects) cannot be used as keys in ordinary |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 ArrayBufferContentsArray* m_arrayBufferContents; | 679 ArrayBufferContentsArray* m_arrayBufferContents; |
| 681 ImageBitmapContentsArray* m_imageBitmapContents; | 680 ImageBitmapContentsArray* m_imageBitmapContents; |
| 682 Vector<v8::Local<v8::Value>> m_arrayBuffers; | 681 Vector<v8::Local<v8::Value>> m_arrayBuffers; |
| 683 Vector<v8::Local<v8::Value>> m_imageBitmaps; | 682 Vector<v8::Local<v8::Value>> m_imageBitmaps; |
| 684 uint32_t m_version; | 683 uint32_t m_version; |
| 685 }; | 684 }; |
| 686 | 685 |
| 687 } // namespace blink | 686 } // namespace blink |
| 688 | 687 |
| 689 #endif // ScriptValueSerializer_h | 688 #endif // ScriptValueSerializer_h |
| OLD | NEW |