OLD | NEW |
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 #include "dbus/message.h" | 5 #include "dbus/message.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "dbus/object_path.h" | 14 #include "dbus/object_path.h" |
15 | 15 |
16 #if defined(USE_SYSTEM_PROTOBUF) | 16 #if defined(USE_SYSTEM_PROTOBUF) |
17 #include <google/protobuf/message_lite.h> | 17 #include <google/protobuf/message_lite.h> |
18 #else | 18 #else |
19 #include "third_party/protobuf/src/google/protobuf/message_lite.h" | 19 #include "third_party/protobuf/src/google/protobuf/message_lite.h" |
20 #endif | 20 #endif |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 const bool success = PopBasic(DBUS_TYPE_UNIX_FD, &fd); | 979 const bool success = PopBasic(DBUS_TYPE_UNIX_FD, &fd); |
980 if (!success) | 980 if (!success) |
981 return false; | 981 return false; |
982 | 982 |
983 value->PutValue(fd); | 983 value->PutValue(fd); |
984 // NB: the caller must check validity before using the value | 984 // NB: the caller must check validity before using the value |
985 return true; | 985 return true; |
986 } | 986 } |
987 | 987 |
988 } // namespace dbus | 988 } // namespace dbus |
OLD | NEW |