summaryrefslogtreecommitdiffstats
path: root/sync/js/js_arg_list.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sync/js/js_arg_list.cc')
-rw-r--r--sync/js/js_arg_list.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/sync/js/js_arg_list.cc b/sync/js/js_arg_list.cc
new file mode 100644
index 0000000..d8ab8e2
--- /dev/null
+++ b/sync/js/js_arg_list.cc
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "sync/js/js_arg_list.h"
+
+#include "base/json/json_writer.h"
+
+namespace browser_sync {
+
+JsArgList::JsArgList() {}
+
+JsArgList::JsArgList(ListValue* args) : args_(args) {}
+
+JsArgList::~JsArgList() {}
+
+const ListValue& JsArgList::Get() const {
+ return args_.Get();
+}
+
+std::string JsArgList::ToString() const {
+ std::string str;
+ base::JSONWriter::Write(&Get(), false, &str);
+ return str;
+}
+
+} // namespace browser_sync