Chromium Code Reviews| 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 #ifndef DBUS_VALUES_UTIL_H_ | |
| 6 #define DBUS_VALUES_UTIL_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 namespace base { | |
| 10 class Value; | |
| 11 } | |
| 12 | |
| 13 namespace dbus { | |
| 14 | |
| 15 class MessageReader; | |
| 16 | |
| 17 // Pops a value from |reader| as a base::Value. Integer values larger than | |
| 18 // int32 (including uint32) are converted to double. | |
| 19 // Returns NULL if an error occurs. | |
| 20 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.
| |
| 21 | |
| 22 } // namespace dbus | |
| 23 | |
| 24 #endif // DBUS_VALUES_UTIL_H_ | |
| OLD | NEW |