Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: dbus/values_util.h

Issue 11364033: dbus: Make it possible to build as shared_library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CHROME_DBUS_EXPORT Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« dbus/dbus_export.h ('K') | « dbus/string_util.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DBUS_VALUES_UTIL_H_ 5 #ifndef DBUS_VALUES_UTIL_H_
6 #define DBUS_VALUES_UTIL_H_ 6 #define DBUS_VALUES_UTIL_H_
7 7
8 #include "dbus/dbus_export.h"
9
8 namespace base { 10 namespace base {
9 class Value; 11 class Value;
10 } 12 }
11 13
12 namespace dbus { 14 namespace dbus {
13 15
14 class MessageReader; 16 class MessageReader;
15 class MessageWriter; 17 class MessageWriter;
16 18
17 // Pops a value from |reader| as a base::Value. 19 // Pops a value from |reader| as a base::Value.
18 // Returns NULL if an error occurs. 20 // Returns NULL if an error occurs.
19 // Note: Integer values larger than int32 (including uint32) are converted to 21 // Note: Integer values larger than int32 (including uint32) are converted to
20 // double. Non-string diciontary keys are converted to strings. 22 // double. Non-string diciontary keys are converted to strings.
21 base::Value* PopDataAsValue(MessageReader* reader); 23 CHROME_DBUS_EXPORT base::Value* PopDataAsValue(MessageReader* reader);
22 24
23 // Appends a basic type value to |writer|. 25 // Appends a basic type value to |writer|.
24 void AppendBasicTypeValueData(MessageWriter* writer, const base::Value& value); 26 CHROME_DBUS_EXPORT void AppendBasicTypeValueData(MessageWriter* writer,
27 const base::Value& value);
25 28
26 // Appends a basic type value to |writer| as a variant. 29 // Appends a basic type value to |writer| as a variant.
27 void AppendBasicTypeValueDataAsVariant(MessageWriter* writer, 30 CHROME_DBUS_EXPORT void AppendBasicTypeValueDataAsVariant(
28 const base::Value& value); 31 MessageWriter* writer,
32 const base::Value& value);
29 33
30 } // namespace dbus 34 } // namespace dbus
31 35
32 #endif // DBUS_VALUES_UTIL_H_ 36 #endif // DBUS_VALUES_UTIL_H_
OLDNEW
« dbus/dbus_export.h ('K') | « dbus/string_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698