This source file includes following definitions.
- ToValue
#include "sync/internal_api/public/events/protocol_event.h"
namespace syncer {
ProtocolEvent::ProtocolEvent() {}
ProtocolEvent::~ProtocolEvent() {}
scoped_ptr<base::DictionaryValue> ProtocolEvent::ToValue(
const ProtocolEvent& event) {
scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
dict->SetDouble("time", event.GetTimestamp().ToJsTime());
dict->SetString("type", event.GetType());
dict->SetString("details", event.GetDetails());
dict->Set("proto", event.GetProtoMessage().release());
return dict.Pass();
}
}