diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-24 20:37:18 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-24 20:37:18 +0000 |
commit | 6e04d17161b8d53770979fb5a451da8174e255c6 (patch) | |
tree | 3ca941138578159e4059e52f94a105c1242ed609 /dbus/values_util.h | |
parent | ffd60e434c0dff91d8cb9251c08d901b12346b2a (diff) | |
download | chromium_src-6e04d17161b8d53770979fb5a451da8174e255c6.zip chromium_src-6e04d17161b8d53770979fb5a451da8174e255c6.tar.gz chromium_src-6e04d17161b8d53770979fb5a451da8174e255c6.tar.bz2 |
Add dbus::AppendBasicTypeValueData
BUG=chromium-os:16557
TEST=dbus_unittests --gtest_filter="ValuesUtilTest.Append*"
Review URL: http://codereview.chromium.org/9826044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/values_util.h')
-rw-r--r-- | dbus/values_util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dbus/values_util.h b/dbus/values_util.h index cfb31a5..535a402 100644 --- a/dbus/values_util.h +++ b/dbus/values_util.h @@ -13,6 +13,7 @@ class Value; namespace dbus { class MessageReader; +class MessageWriter; // Pops a value from |reader| as a base::Value. // Returns NULL if an error occurs. @@ -20,6 +21,13 @@ class MessageReader; // double. Non-string diciontary keys are converted to strings. base::Value* PopDataAsValue(MessageReader* reader); +// Appends a basic type value to |writer|. +void AppendBasicTypeValueData(MessageWriter* writer, const base::Value& value); + +// Appends a basic type value to |writer| as a variant. +void AppendBasicTypeValueDataAsVariant(MessageWriter* writer, + const base::Value& value); + } // namespace dbus #endif // DBUS_VALUES_UTIL_H_ |