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 "ipc/ipc_message_utils.h" | 5 #include "ipc/ipc_message_utils.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 } | 407 } |
408 | 408 |
409 void ParamTraits<int>::Log(const param_type& p, std::string* l) { | 409 void ParamTraits<int>::Log(const param_type& p, std::string* l) { |
410 l->append(base::IntToString(p)); | 410 l->append(base::IntToString(p)); |
411 } | 411 } |
412 | 412 |
413 void ParamTraits<unsigned int>::Log(const param_type& p, std::string* l) { | 413 void ParamTraits<unsigned int>::Log(const param_type& p, std::string* l) { |
414 l->append(base::UintToString(p)); | 414 l->append(base::UintToString(p)); |
415 } | 415 } |
416 | 416 |
417 #if defined(OS_WIN) || defined(ARCH_CPU_ARM64) || defined(OS_LINUX) | 417 #if defined(OS_WIN) || defined(OS_LINUX) || \ |
| 418 (defined(OS_ANDROID) && defined(ARCH_CPU_64_BITS)) |
418 void ParamTraits<long>::Log(const param_type& p, std::string* l) { | 419 void ParamTraits<long>::Log(const param_type& p, std::string* l) { |
419 l->append(base::Int64ToString(static_cast<int64_t>(p))); | 420 l->append(base::Int64ToString(static_cast<int64_t>(p))); |
420 } | 421 } |
421 | 422 |
422 void ParamTraits<unsigned long>::Log(const param_type& p, std::string* l) { | 423 void ParamTraits<unsigned long>::Log(const param_type& p, std::string* l) { |
423 l->append(base::Uint64ToString(static_cast<uint64_t>(p))); | 424 l->append(base::Uint64ToString(static_cast<uint64_t>(p))); |
424 } | 425 } |
425 #endif | 426 #endif |
426 | 427 |
427 void ParamTraits<long long>::Log(const param_type& p, std::string* l) { | 428 void ParamTraits<long long>::Log(const param_type& p, std::string* l) { |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 return result; | 1216 return result; |
1216 } | 1217 } |
1217 | 1218 |
1218 void ParamTraits<MSG>::Log(const param_type& p, std::string* l) { | 1219 void ParamTraits<MSG>::Log(const param_type& p, std::string* l) { |
1219 l->append("<MSG>"); | 1220 l->append("<MSG>"); |
1220 } | 1221 } |
1221 | 1222 |
1222 #endif // OS_WIN | 1223 #endif // OS_WIN |
1223 | 1224 |
1224 } // namespace IPC | 1225 } // namespace IPC |
OLD | NEW |