NaCl: disable TLS check on IRT nexe
[chromium-blink-merge.git] / dbus / values_util.h
blobf710fa3758a3107e87cd4b45a59e0b2fadaba35f
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.
5 #ifndef DBUS_VALUES_UTIL_H_
6 #define DBUS_VALUES_UTIL_H_
8 namespace base {
9 class Value;
12 namespace dbus {
14 class MessageReader;
15 class MessageWriter;
17 // Pops a value from |reader| as a base::Value.
18 // Returns NULL if an error occurs.
19 // Note: Integer values larger than int32 (including uint32) are converted to
20 // double. Non-string diciontary keys are converted to strings.
21 base::Value* PopDataAsValue(MessageReader* reader);
23 // Appends a basic type value to |writer|.
24 void AppendBasicTypeValueData(MessageWriter* writer, const base::Value& value);
26 // Appends a basic type value to |writer| as a variant.
27 void AppendBasicTypeValueDataAsVariant(MessageWriter* writer,
28 const base::Value& value);
30 } // namespace dbus
32 #endif // DBUS_VALUES_UTIL_H_