| 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" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 String takeWireString(); | 116 String takeWireString(); |
| 117 | 117 |
| 118 // Write functions for primitive types. | 118 // Write functions for primitive types. |
| 119 void writeUndefined(); | 119 void writeUndefined(); |
| 120 void writeNull(); | 120 void writeNull(); |
| 121 void writeTrue(); | 121 void writeTrue(); |
| 122 void writeFalse(); | 122 void writeFalse(); |
| 123 void writeBooleanObject(bool value); | 123 void writeBooleanObject(bool value); |
| 124 void writeOneByteString(v8::Local<v8::String>&); | 124 void writeOneByteString(v8::Local<v8::String>&); |
| 125 void writeRawStringBytes(v8::Local<v8::String>&); |
| 126 void writeUtf8String(v8::Local<v8::String>&); |
| 125 void writeUCharString(v8::Local<v8::String>&); | 127 void writeUCharString(v8::Local<v8::String>&); |
| 126 void writeStringObject(const char* data, int length); | 128 void writeStringObject(const char* data, int length); |
| 127 void writeWebCoreString(const String&); | 129 void writeWebCoreString(const String&); |
| 128 void writeVersion(); | 130 void writeVersion(); |
| 129 void writeInt32(int32_t value); | 131 void writeInt32(int32_t value); |
| 130 void writeUint32(uint32_t value); | 132 void writeUint32(uint32_t value); |
| 131 void writeDate(double numberValue); | 133 void writeDate(double numberValue); |
| 132 void writeNumber(double number); | 134 void writeNumber(double number); |
| 133 void writeNumberObject(double number); | 135 void writeNumberObject(double number); |
| 134 void writeBlob(const String& uuid, | 136 void writeBlob(const String& uuid, |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 ArrayBufferContentsArray* m_arrayBufferContents; | 680 ArrayBufferContentsArray* m_arrayBufferContents; |
| 679 ImageBitmapContentsArray* m_imageBitmapContents; | 681 ImageBitmapContentsArray* m_imageBitmapContents; |
| 680 Vector<v8::Local<v8::Value>> m_arrayBuffers; | 682 Vector<v8::Local<v8::Value>> m_arrayBuffers; |
| 681 Vector<v8::Local<v8::Value>> m_imageBitmaps; | 683 Vector<v8::Local<v8::Value>> m_imageBitmaps; |
| 682 uint32_t m_version; | 684 uint32_t m_version; |
| 683 }; | 685 }; |
| 684 | 686 |
| 685 } // namespace blink | 687 } // namespace blink |
| 686 | 688 |
| 687 #endif // ScriptValueSerializer_h | 689 #endif // ScriptValueSerializer_h |
| OLD | NEW |