Lines Matching refs:base

24 bool PopListElements(MessageReader* reader, base::ListValue* list_value) {  in PopListElements()
26 base::Value* element_value = PopDataAsValue(reader); in PopListElements()
36 base::DictionaryValue* dictionary_value) { in PopDictionaryEntries()
50 scoped_ptr<base::Value> key(PopDataAsValue(&entry_reader)); in PopDictionaryEntries()
54 base::JSONWriter::Write(*key, &key_string); in PopDictionaryEntries()
57 base::Value* value = PopDataAsValue(&entry_reader); in PopDictionaryEntries()
66 std::string GetTypeSignature(const base::Value& value) { in GetTypeSignature()
68 case base::Value::TYPE_BOOLEAN: in GetTypeSignature()
70 case base::Value::TYPE_INTEGER: in GetTypeSignature()
72 case base::Value::TYPE_DOUBLE: in GetTypeSignature()
74 case base::Value::TYPE_STRING: in GetTypeSignature()
76 case base::Value::TYPE_BINARY: in GetTypeSignature()
78 case base::Value::TYPE_DICTIONARY: in GetTypeSignature()
80 case base::Value::TYPE_LIST: in GetTypeSignature()
90 base::Value* PopDataAsValue(MessageReader* reader) { in PopDataAsValue()
91 base::Value* result = NULL; in PopDataAsValue()
99 result = new base::FundamentalValue(value); in PopDataAsValue()
105 result = new base::FundamentalValue(value); in PopDataAsValue()
111 result = new base::FundamentalValue(value); in PopDataAsValue()
117 result = new base::FundamentalValue(value); in PopDataAsValue()
123 result = new base::FundamentalValue(value); in PopDataAsValue()
129 result = new base::FundamentalValue(static_cast<double>(value)); in PopDataAsValue()
137 result = new base::FundamentalValue(static_cast<double>(value)); in PopDataAsValue()
146 result = new base::FundamentalValue(static_cast<double>(value)); in PopDataAsValue()
153 result = new base::FundamentalValue(value); in PopDataAsValue()
159 result = new base::StringValue(value); in PopDataAsValue()
165 result = new base::StringValue(value.value()); in PopDataAsValue()
179 scoped_ptr<base::DictionaryValue> dictionary_value( in PopDataAsValue()
180 new base::DictionaryValue); in PopDataAsValue()
184 scoped_ptr<base::ListValue> list_value(new base::ListValue); in PopDataAsValue()
194 scoped_ptr<base::ListValue> list_value(new base::ListValue); in PopDataAsValue()
214 void AppendBasicTypeValueData(MessageWriter* writer, const base::Value& value) { in AppendBasicTypeValueData()
216 case base::Value::TYPE_BOOLEAN: { in AppendBasicTypeValueData()
223 case base::Value::TYPE_INTEGER: { in AppendBasicTypeValueData()
230 case base::Value::TYPE_DOUBLE: { in AppendBasicTypeValueData()
237 case base::Value::TYPE_STRING: { in AppendBasicTypeValueData()
251 const base::Value& value) { in AppendBasicTypeValueDataAsVariant()
258 void AppendValueData(MessageWriter* writer, const base::Value& value) { in AppendValueData()
260 case base::Value::TYPE_DICTIONARY: { in AppendValueData()
261 const base::DictionaryValue* dictionary = NULL; in AppendValueData()
265 for (base::DictionaryValue::Iterator iter(*dictionary); in AppendValueData()
276 case base::Value::TYPE_LIST: { in AppendValueData()
277 const base::ListValue* list = NULL; in AppendValueData()
281 for (base::ListValue::const_iterator iter = list->begin(); in AppendValueData()
283 const base::Value* value = *iter; in AppendValueData()
289 case base::Value::TYPE_BOOLEAN: in AppendValueData()
290 case base::Value::TYPE_INTEGER: in AppendValueData()
291 case base::Value::TYPE_DOUBLE: in AppendValueData()
292 case base::Value::TYPE_STRING: in AppendValueData()
300 void AppendValueDataAsVariant(MessageWriter* writer, const base::Value& value) { in AppendValueDataAsVariant()