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

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

Issue 2686503005: Remove SerializedScriptValue::serialize and ScriptValueSerializer::serializeWTFString. (Closed)
Patch Set: Merge branch 'master' into delete-ssv 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 ScriptValueSerializer(SerializedScriptValueWriter&, 226 ScriptValueSerializer(SerializedScriptValueWriter&,
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&);
237
238 protected: 236 protected:
239 class StateBase { 237 class StateBase {
240 USING_FAST_MALLOC(StateBase); 238 USING_FAST_MALLOC(StateBase);
241 WTF_MAKE_NONCOPYABLE(StateBase); 239 WTF_MAKE_NONCOPYABLE(StateBase);
242 240
243 public: 241 public:
244 virtual ~StateBase() {} 242 virtual ~StateBase() {}
245 243
246 // Link to the next state to form a stack. 244 // Link to the next state to form a stack.
247 StateBase* nextState() { return m_next; } 245 StateBase* nextState() { return m_next; }
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 ArrayBufferContentsArray* m_arrayBufferContents; 666 ArrayBufferContentsArray* m_arrayBufferContents;
669 ImageBitmapContentsArray* m_imageBitmapContents; 667 ImageBitmapContentsArray* m_imageBitmapContents;
670 Vector<v8::Local<v8::Value>> m_arrayBuffers; 668 Vector<v8::Local<v8::Value>> m_arrayBuffers;
671 Vector<v8::Local<v8::Value>> m_imageBitmaps; 669 Vector<v8::Local<v8::Value>> m_imageBitmaps;
672 uint32_t m_version; 670 uint32_t m_version;
673 }; 671 };
674 672
675 } // namespace blink 673 } // namespace blink
676 674
677 #endif // ScriptValueSerializer_h 675 #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