OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "sync/js/js_event_details.h" | |
6 | |
7 #include "base/json/json_writer.h" | |
8 | |
9 namespace syncer { | |
10 | |
11 JsEventDetails::JsEventDetails() {} | |
12 | |
13 JsEventDetails::JsEventDetails(base::DictionaryValue* details) | |
14 : details_(details) {} | |
15 | |
16 JsEventDetails::JsEventDetails(const JsEventDetails& other) = default; | |
17 | |
18 JsEventDetails::~JsEventDetails() {} | |
19 | |
20 const base::DictionaryValue& JsEventDetails::Get() const { | |
21 return details_.Get(); | |
22 } | |
23 | |
24 std::string JsEventDetails::ToString() const { | |
25 std::string str; | |
26 base::JSONWriter::Write(Get(), &str); | |
27 return str; | |
28 } | |
29 | |
30 } // namespace syncer | |
OLD | NEW |