| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_IPC_MESSAGE_UTILS_H_ | 5 #ifndef CHROME_COMMON_IPC_MESSAGE_UTILS_H_ |
| 6 #define CHROME_COMMON_IPC_MESSAGE_UTILS_H_ | 6 #define CHROME_COMMON_IPC_MESSAGE_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 #endif | 763 #endif |
| 764 } | 764 } |
| 765 static bool Read(const Message* m, void** iter, param_type* r) { | 765 static bool Read(const Message* m, void** iter, param_type* r) { |
| 766 return ReadParam(m, iter, &r->name) | 766 return ReadParam(m, iter, &r->name) |
| 767 #if defined(OS_POSIX) | 767 #if defined(OS_POSIX) |
| 768 && ReadParam(m, iter, &r->socket) | 768 && ReadParam(m, iter, &r->socket) |
| 769 #endif | 769 #endif |
| 770 ; | 770 ; |
| 771 } | 771 } |
| 772 static void Log(const param_type& p, std::wstring* l) { | 772 static void Log(const param_type& p, std::wstring* l) { |
| 773 l->append(StringPrintf(L"ChannelHandle(%s", p.name.c_str())); | 773 l->append(ASCIIToWide(StringPrintf("ChannelHandle(%s", p.name.c_str()))); |
| 774 #if defined(OS_POSIX) | 774 #if defined(OS_POSIX) |
| 775 ParamTraits<base::FileDescriptor>::Log(p.socket, l); | 775 ParamTraits<base::FileDescriptor>::Log(p.socket, l); |
| 776 #endif | 776 #endif |
| 777 l->append(L")"); | 777 l->append(L")"); |
| 778 } | 778 } |
| 779 }; | 779 }; |
| 780 | 780 |
| 781 template<> | 781 template<> |
| 782 struct ParamTraits<ThumbnailScore> { | 782 struct ParamTraits<ThumbnailScore> { |
| 783 typedef ThumbnailScore param_type; | 783 typedef ThumbnailScore param_type; |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 ReplyParam p(a, b, c, d, e); | 1467 ReplyParam p(a, b, c, d, e); |
| 1468 WriteParam(reply, p); | 1468 WriteParam(reply, p); |
| 1469 } | 1469 } |
| 1470 }; | 1470 }; |
| 1471 | 1471 |
| 1472 //----------------------------------------------------------------------------- | 1472 //----------------------------------------------------------------------------- |
| 1473 | 1473 |
| 1474 } // namespace IPC | 1474 } // namespace IPC |
| 1475 | 1475 |
| 1476 #endif // CHROME_COMMON_IPC_MESSAGE_UTILS_H_ | 1476 #endif // CHROME_COMMON_IPC_MESSAGE_UTILS_H_ |
| OLD | NEW |