Index: third_party/WebKit/Source/platform/inspector_protocol/Values.cpp |
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp b/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp |
index 7d4ec242ae4c51d2c557413daf72b9d9f61acdd6..5b8f13b4930e2716f71136b7ece01bc11f351181 100644 |
--- a/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp |
+++ b/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp |
@@ -92,6 +92,11 @@ bool Value::asString(String16*) const |
return false; |
} |
+bool Value::asSerialized(String16*) const |
+{ |
+ return false; |
+} |
+ |
String16 Value::toJSONString() const |
{ |
String16Builder result; |
@@ -188,6 +193,23 @@ std::unique_ptr<Value> StringValue::clone() const |
return StringValue::create(m_stringValue); |
} |
+bool SerializedValue::asSerialized(String16* output) const |
+{ |
+ *output = m_serializedValue; |
+ return true; |
+} |
+ |
+void SerializedValue::writeJSON(String16Builder* output) const |
+{ |
+ DCHECK(type() == TypeSerialized); |
+ output->append(m_serializedValue); |
+} |
+ |
+std::unique_ptr<Value> SerializedValue::clone() const |
+{ |
+ return SerializedValue::create(m_serializedValue); |
+} |
+ |
DictionaryValue::~DictionaryValue() |
{ |
} |