Lines Matching full:base
7 #include "base/json/json_writer.h"
8 #include "base/strings/stringprintf.h"
9 #include "base/values.h"
13 scoped_ptr<base::Value> TracedValue::CreateIDRef(const void* id) {
14 scoped_ptr<base::DictionaryValue> res(new base::DictionaryValue());
15 res->SetString("id_ref", base::StringPrintf("%p", id));
16 return res.PassAs<base::Value>();
20 base::DictionaryValue* dict, const char* object_name, const void* id) {
21 dict->SetString("id", base::StringPrintf("%s/%p", object_name, id));
26 base::DictionaryValue* dict,
33 scoped_refptr<base::debug::ConvertableToTraceFormat> TracedValue::FromValue(
34 base::Value* value) {
35 return scoped_refptr<base::debug::ConvertableToTraceFormat>(
39 TracedValue::TracedValue(base::Value* value)
48 base::JSONWriter::Write(value_.get(), &tmp);