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

Side by Side Diff: dbus/message.h

Issue 7686013: Add AppendArrayOfObjectPaths, which was missing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months 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
« no previous file with comments | « no previous file | dbus/message.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MESSAGE_H_ 5 #ifndef DBUS_MESSAGE_H_
6 #define DBUS_MESSAGE_H_ 6 #define DBUS_MESSAGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 void OpenDictEntry(MessageWriter* sub_writer); 231 void OpenDictEntry(MessageWriter* sub_writer);
232 232
233 // Close the container for a array/variant/struct/dict entry. 233 // Close the container for a array/variant/struct/dict entry.
234 void CloseContainer(MessageWriter* sub_writer); 234 void CloseContainer(MessageWriter* sub_writer);
235 235
236 // Appends the array of bytes. Arrays of bytes are often used for 236 // Appends the array of bytes. Arrays of bytes are often used for
237 // exchanging binary blobs hence it's worth having a specialized 237 // exchanging binary blobs hence it's worth having a specialized
238 // function. 238 // function.
239 void AppendArrayOfBytes(const uint8* values, size_t length); 239 void AppendArrayOfBytes(const uint8* values, size_t length);
240 240
241 // Appends the array of object paths. Arrays of object paths are often
242 // used to exchanging object paths, hence it's worth having a
243 // specialized function.
244 void AppendArrayOfObjectPaths(const std::vector<std::string>& object_paths);
245
241 // Appends the byte wrapped in a variant data container. Variants are 246 // Appends the byte wrapped in a variant data container. Variants are
242 // widely used in D-Bus services so it's worth having a specialized 247 // widely used in D-Bus services so it's worth having a specialized
243 // function. For instance, The third parameter of 248 // function. For instance, The third parameter of
244 // "org.freedesktop.DBus.Properties.Set" is a variant. 249 // "org.freedesktop.DBus.Properties.Set" is a variant.
245 void AppendVariantOfByte(uint8 value); 250 void AppendVariantOfByte(uint8 value);
246 void AppendVariantOfBool(bool value); 251 void AppendVariantOfBool(bool value);
247 void AppendVariantOfInt16(int16 value); 252 void AppendVariantOfInt16(int16 value);
248 void AppendVariantOfUint16(uint16 value); 253 void AppendVariantOfUint16(uint16 value);
249 void AppendVariantOfInt32(int32 value); 254 void AppendVariantOfInt32(int32 value);
250 void AppendVariantOfUint32(uint32 value); 255 void AppendVariantOfUint32(uint32 value);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 373
369 Message* message_; 374 Message* message_;
370 DBusMessageIter raw_message_iter_; 375 DBusMessageIter raw_message_iter_;
371 376
372 DISALLOW_COPY_AND_ASSIGN(MessageReader); 377 DISALLOW_COPY_AND_ASSIGN(MessageReader);
373 }; 378 };
374 379
375 } // namespace dbus 380 } // namespace dbus
376 381
377 #endif // DBUS_MESSAGE_H_ 382 #endif // DBUS_MESSAGE_H_
OLDNEW
« no previous file with comments | « no previous file | dbus/message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698