Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h

Issue 2684593006: Remove ScriptValueSerializer::serializeNullValue. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698