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

Side by Side Diff: dbus/message.h

Issue 10815083: Make dbus file descriptor check dynamic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 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) 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_MESSAGE_H_ 5 #ifndef DBUS_MESSAGE_H_
6 #define DBUS_MESSAGE_H_ 6 #define DBUS_MESSAGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <dbus/dbus.h> 10 #include <dbus/dbus.h>
(...skipping 10 matching lines...) Expand all
21 } // namespace protobuf 21 } // namespace protobuf
22 } // namespace google 22 } // namespace google
23 23
24 24
25 namespace dbus { 25 namespace dbus {
26 26
27 class MessageWriter; 27 class MessageWriter;
28 class MessageReader; 28 class MessageReader;
29 29
30 // DBUS_TYPE_UNIX_FD was added in D-Bus version 1.4 30 // DBUS_TYPE_UNIX_FD was added in D-Bus version 1.4
31 #if defined(DBUS_TYPE_UNIX_FD) 31 #if !defined(DBUS_TYPE_UNIX_FD)
32 const bool kDBusTypeUnixFdIsSupported = true;
33 #else
34 const bool kDBusTypeUnixFdIsSupported = false;
35 #define DBUS_TYPE_UNIX_FD ((int) 'h') 32 #define DBUS_TYPE_UNIX_FD ((int) 'h')
36 #endif 33 #endif
37 34
38 // Message is the base class of D-Bus message types. Client code must use 35 // Message is the base class of D-Bus message types. Client code must use
39 // sub classes such as MethodCall and Response instead. 36 // sub classes such as MethodCall and Response instead.
40 // 37 //
41 // The class name Message is very generic, but there should be no problem 38 // The class name Message is very generic, but there should be no problem
42 // as the class is inside 'dbus' namespace. We chose to name this way, as 39 // as the class is inside 'dbus' namespace. We chose to name this way, as
43 // libdbus defines lots of types starting with DBus, such as 40 // libdbus defines lots of types starting with DBus, such as
44 // DBusMessage. We should avoid confusion and conflict with these types. 41 // DBusMessage. We should avoid confusion and conflict with these types.
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 470
474 Message* message_; 471 Message* message_;
475 DBusMessageIter raw_message_iter_; 472 DBusMessageIter raw_message_iter_;
476 473
477 DISALLOW_COPY_AND_ASSIGN(MessageReader); 474 DISALLOW_COPY_AND_ASSIGN(MessageReader);
478 }; 475 };
479 476
480 } // namespace dbus 477 } // namespace dbus
481 478
482 #endif // DBUS_MESSAGE_H_ 479 #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