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

Unified Diff: Source/bindings/v8/SerializedScriptValue.h

Issue 24876004: Move SerializedScriptValue wire format version to public header (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added the k back in Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/bindings/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/SerializedScriptValue.h
diff --git a/Source/bindings/v8/SerializedScriptValue.h b/Source/bindings/v8/SerializedScriptValue.h
index b959ae158b51d29edeedf8e603ebadd52f3c2bd4..3de5644db34c36e6d87db3b4f13012adb9908a60 100644
--- a/Source/bindings/v8/SerializedScriptValue.h
+++ b/Source/bindings/v8/SerializedScriptValue.h
@@ -52,6 +52,10 @@ typedef Vector<RefPtr<WTF::ArrayBuffer>, 1> ArrayBufferArray;
class SerializedScriptValue : public ThreadSafeRefCounted<SerializedScriptValue> {
public:
+ // Increment this for each incompatible change to the wire format.
+ // Version 2: Added StringUCharTag for UChar v8 strings.
+ static const uint32_t wireFormatVersion = 2;
+
virtual ~SerializedScriptValue();
// If a serialization error occurs (e.g., cyclic input value) this
@@ -79,8 +83,6 @@ public:
static PassRefPtr<SerializedScriptValue> numberValue(double);
static PassRefPtr<SerializedScriptValue> numberValue(double, v8::Isolate*);
- static uint32_t wireFormatVersion();
-
PassRefPtr<SerializedScriptValue> release();
String toWireString() const { return m_data; }
« no previous file with comments | « no previous file | Source/bindings/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698