Index: dbus/values_util.h |
diff --git a/dbus/values_util.h b/dbus/values_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..64194a377efbf248ac16c703a6e24414bdd5e912 |
--- /dev/null |
+++ b/dbus/values_util.h |
@@ -0,0 +1,24 @@ |
+// 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. |
+ |
+#ifndef DBUS_VALUES_UTIL_H_ |
+#define DBUS_VALUES_UTIL_H_ |
+#pragma once |
+ |
+namespace base { |
+class Value; |
+} |
+ |
+namespace dbus { |
+ |
+class MessageReader; |
+ |
+// Pops a value from |reader| as a base::Value. Integer values larger than |
+// int32 (including uint32) are converted to double. |
+// Returns NULL if an error occurs. |
+base::Value* PopDataAsValue(MessageReader* reader); |
satorux1
2012/03/15 23:29:04
Hmm, this looks like over engineering.
I thought
hashimoto
2012/03/15 23:38:18
I thought having a complete tool to pop data as ba
hashimoto
2012/03/16 02:45:52
I once tried to write a simpler function which can
satorux1
2012/03/16 16:23:59
Makes sense.
|
+ |
+} // namespace dbus |
+ |
+#endif // DBUS_VALUES_UTIL_H_ |