| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 IPC_IPC_MESSAGE_UTILS_H_ | 5 #ifndef IPC_IPC_MESSAGE_UTILS_H_ |
| 6 #define IPC_IPC_MESSAGE_UTILS_H_ | 6 #define IPC_IPC_MESSAGE_UTILS_H_ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 WriteParam(m, p.flags); | 795 WriteParam(m, p.flags); |
| 796 WriteParam(m, p.sent); | 796 WriteParam(m, p.sent); |
| 797 WriteParam(m, p.receive); | 797 WriteParam(m, p.receive); |
| 798 WriteParam(m, p.dispatch); | 798 WriteParam(m, p.dispatch); |
| 799 WriteParam(m, p.params); | 799 WriteParam(m, p.params); |
| 800 } | 800 } |
| 801 static bool Read(const Message* m, void** iter, param_type* r) { | 801 static bool Read(const Message* m, void** iter, param_type* r) { |
| 802 int type; | 802 int type; |
| 803 bool result = | 803 bool result = |
| 804 ReadParam(m, iter, &r->channel) && | 804 ReadParam(m, iter, &r->channel) && |
| 805 ReadParam(m, iter, &r->routing_id); | 805 ReadParam(m, iter, &r->routing_id) && |
| 806 ReadParam(m, iter, &type) && | 806 ReadParam(m, iter, &type) && |
| 807 ReadParam(m, iter, &r->flags) && | 807 ReadParam(m, iter, &r->flags) && |
| 808 ReadParam(m, iter, &r->sent) && | 808 ReadParam(m, iter, &r->sent) && |
| 809 ReadParam(m, iter, &r->receive) && | 809 ReadParam(m, iter, &r->receive) && |
| 810 ReadParam(m, iter, &r->dispatch) && | 810 ReadParam(m, iter, &r->dispatch) && |
| 811 ReadParam(m, iter, &r->params); | 811 ReadParam(m, iter, &r->params); |
| 812 r->type = static_cast<uint16>(type); | 812 r->type = static_cast<uint16>(type); |
| 813 return result; | 813 return result; |
| 814 } | 814 } |
| 815 static void Log(const param_type& p, std::wstring* l) { | 815 static void Log(const param_type& p, std::wstring* l) { |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1253 ReplyParam p(a, b, c, d, e); | 1253 ReplyParam p(a, b, c, d, e); |
| 1254 WriteParam(reply, p); | 1254 WriteParam(reply, p); |
| 1255 } | 1255 } |
| 1256 }; | 1256 }; |
| 1257 | 1257 |
| 1258 //----------------------------------------------------------------------------- | 1258 //----------------------------------------------------------------------------- |
| 1259 | 1259 |
| 1260 } // namespace IPC | 1260 } // namespace IPC |
| 1261 | 1261 |
| 1262 #endif // IPC_IPC_MESSAGE_UTILS_H_ | 1262 #endif // IPC_IPC_MESSAGE_UTILS_H_ |
| OLD | NEW |