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

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

Issue 2767243002: Sync SerializedScriptValue::wireFormatVersion with V8ScriptValueSerializer. (Closed)
Patch Set: Merge branch 'master' into ssv-version Created 3 years, 9 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/serialization/V8ScriptValueSerializer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Increment this for each incompatible change to the wire format. 64 // Increment this for each incompatible change to the wire format.
65 // Version 2: Added StringUCharTag for UChar v8 strings. 65 // Version 2: Added StringUCharTag for UChar v8 strings.
66 // Version 3: Switched to using uuids as blob data identifiers. 66 // Version 3: Switched to using uuids as blob data identifiers.
67 // Version 4: Extended File serialization to be complete. 67 // Version 4: Extended File serialization to be complete.
68 // Version 5: Added CryptoKeyTag for Key objects. 68 // Version 5: Added CryptoKeyTag for Key objects.
69 // Version 6: Added indexed serialization for File, Blob, and FileList. 69 // Version 6: Added indexed serialization for File, Blob, and FileList.
70 // Version 7: Extended File serialization with user visibility. 70 // Version 7: Extended File serialization with user visibility.
71 // Version 8: File.lastModified in milliseconds (seconds-based in earlier 71 // Version 8: File.lastModified in milliseconds (seconds-based in earlier
72 // versions.) 72 // versions.)
73 // Version 9: Added Map and Set support. 73 // Version 9: Added Map and Set support.
74 static const uint32_t wireFormatVersion = 9; 74 // [versions skipped]
75 // Version 16: Separate versioning between V8 and Blink.
76 static const uint32_t wireFormatVersion = 16;
75 77
76 struct SerializeOptions { 78 struct SerializeOptions {
77 STACK_ALLOCATED(); 79 STACK_ALLOCATED();
78 Transferables* transferables = nullptr; 80 Transferables* transferables = nullptr;
79 WebBlobInfoArray* blobInfo = nullptr; 81 WebBlobInfoArray* blobInfo = nullptr;
80 }; 82 };
81 static PassRefPtr<SerializedScriptValue> serialize(v8::Isolate*, 83 static PassRefPtr<SerializedScriptValue> serialize(v8::Isolate*,
82 v8::Local<v8::Value>, 84 v8::Local<v8::Value>,
83 const SerializeOptions&, 85 const SerializeOptions&,
84 ExceptionState&); 86 ExceptionState&);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 ExceptionState& exceptionState) { 210 ExceptionState& exceptionState) {
209 return SerializedScriptValue::serialize( 211 return SerializedScriptValue::serialize(
210 isolate, value, SerializedScriptValue::SerializeOptions(), 212 isolate, value, SerializedScriptValue::SerializeOptions(),
211 exceptionState); 213 exceptionState);
212 } 214 }
213 }; 215 };
214 216
215 } // namespace blink 217 } // namespace blink
216 218
217 #endif // SerializedScriptValue_h 219 #endif // SerializedScriptValue_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698