| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 WebBlobInfoArray*, | 227 WebBlobInfoArray*, |
| 228 ScriptState*); | 228 ScriptState*); |
| 229 v8::Isolate* isolate() { return m_scriptState->isolate(); } | 229 v8::Isolate* isolate() { return m_scriptState->isolate(); } |
| 230 v8::Local<v8::Context> context() { return m_scriptState->context(); } | 230 v8::Local<v8::Context> context() { return m_scriptState->context(); } |
| 231 | 231 |
| 232 PassRefPtr<SerializedScriptValue> serialize(v8::Local<v8::Value>, | 232 PassRefPtr<SerializedScriptValue> serialize(v8::Local<v8::Value>, |
| 233 Transferables*, | 233 Transferables*, |
| 234 ExceptionState&); | 234 ExceptionState&); |
| 235 | 235 |
| 236 static String serializeWTFString(const String&); | 236 static String serializeWTFString(const String&); |
| 237 static String serializeNullValue(); | |
| 238 | 237 |
| 239 protected: | 238 protected: |
| 240 class StateBase { | 239 class StateBase { |
| 241 USING_FAST_MALLOC(StateBase); | 240 USING_FAST_MALLOC(StateBase); |
| 242 WTF_MAKE_NONCOPYABLE(StateBase); | 241 WTF_MAKE_NONCOPYABLE(StateBase); |
| 243 | 242 |
| 244 public: | 243 public: |
| 245 virtual ~StateBase() {} | 244 virtual ~StateBase() {} |
| 246 | 245 |
| 247 // Link to the next state to form a stack. | 246 // Link to the next state to form a stack. |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 ArrayBufferContentsArray* m_arrayBufferContents; | 668 ArrayBufferContentsArray* m_arrayBufferContents; |
| 670 ImageBitmapContentsArray* m_imageBitmapContents; | 669 ImageBitmapContentsArray* m_imageBitmapContents; |
| 671 Vector<v8::Local<v8::Value>> m_arrayBuffers; | 670 Vector<v8::Local<v8::Value>> m_arrayBuffers; |
| 672 Vector<v8::Local<v8::Value>> m_imageBitmaps; | 671 Vector<v8::Local<v8::Value>> m_imageBitmaps; |
| 673 uint32_t m_version; | 672 uint32_t m_version; |
| 674 }; | 673 }; |
| 675 | 674 |
| 676 } // namespace blink | 675 } // namespace blink |
| 677 | 676 |
| 678 #endif // ScriptValueSerializer_h | 677 #endif // ScriptValueSerializer_h |
| OLD | NEW |