Index: third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h |
index 4eb6246855d435553cdc6113ba1aa75624bf735f..4a4700c9ff661a87d71808c6f7c6bd6833b3ef26 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h |
@@ -110,8 +110,13 @@ public: |
{ |
} |
- // Write functions for primitive types. |
+ // TODO(peria): Protect this mehtod. |
+ String takeWireString(); |
+ |
+protected: |
+ friend class ScriptValueSerializer; |
+ // Write functions for primitive types. |
void writeUndefined(); |
void writeNull(); |
void writeTrue(); |
@@ -149,7 +154,6 @@ public: |
void writeObject(uint32_t numProperties); |
void writeSparseArray(uint32_t numProperties, uint32_t length); |
void writeDenseArray(uint32_t numProperties, uint32_t length); |
- String takeWireString(); |
void writeReferenceCount(uint32_t numberOfReferences); |
void writeGenerateFreshObject(); |
void writeGenerateFreshSparseArray(uint32_t length); |
@@ -159,7 +163,6 @@ public: |
void writeMap(uint32_t length); |
void writeSet(uint32_t length); |
-protected: |
void doWriteFile(const File&); |
void doWriteArrayBuffer(const DOMArrayBuffer&); |
void doWriteString(const char* data, int length); |
@@ -216,6 +219,9 @@ public: |
Status serialize(v8::Local<v8::Value>); |
String errorMessage() { return m_errorMessage; } |
+ static String serializeWTFString(const String&); |
+ static String serializeNullValue(); |
+ |
protected: |
class StateBase { |
USING_FAST_MALLOC(StateBase); |