| Index: base/values.cc
|
| diff --git a/base/values.cc b/base/values.cc
|
| index 507646c8fbe69b605a9eb8ba6bd1cc44bbdcaeb5..58a91f1f56a538b5f379251408f01582dc2c2c54 100644
|
| --- a/base/values.cc
|
| +++ b/base/values.cc
|
| @@ -142,8 +142,23 @@ bool Value::Equals(const Value* other) const {
|
| return other->IsType(TYPE_NULL);
|
| }
|
|
|
| +Value::Value(ValueType type) : type_(type) {
|
| +}
|
| +
|
| ///////////////////// FundamentalValue ////////////////////
|
|
|
| +FundamentalValue::FundamentalValue(bool in_value)
|
| + : Value(TYPE_BOOLEAN), boolean_value_(in_value) {
|
| +}
|
| +
|
| +FundamentalValue::FundamentalValue(int in_value)
|
| + : Value(TYPE_INTEGER), integer_value_(in_value) {
|
| +}
|
| +
|
| +FundamentalValue::FundamentalValue(double in_value)
|
| + : Value(TYPE_REAL), real_value_(in_value) {
|
| +}
|
| +
|
| FundamentalValue::~FundamentalValue() {
|
| }
|
|
|
| @@ -307,6 +322,10 @@ bool BinaryValue::Equals(const Value* other) const {
|
|
|
| ///////////////////// DictionaryValue ////////////////////
|
|
|
| +DictionaryValue::DictionaryValue()
|
| + : Value(TYPE_DICTIONARY) {
|
| +}
|
| +
|
| DictionaryValue::~DictionaryValue() {
|
| Clear();
|
| }
|
| @@ -696,6 +715,9 @@ void DictionaryValue::MergeDictionary(const DictionaryValue* dictionary) {
|
|
|
| ///////////////////// ListValue ////////////////////
|
|
|
| +ListValue::ListValue() : Value(TYPE_LIST) {
|
| +}
|
| +
|
| ListValue::~ListValue() {
|
| Clear();
|
| }
|
| @@ -898,3 +920,6 @@ bool ListValue::Equals(const Value* other) const {
|
|
|
| return true;
|
| }
|
| +
|
| +ValueSerializer::~ValueSerializer() {
|
| +}
|
|
|