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

Side by Side Diff: ipc/ipc_message_utils.h

Issue 1455001: Fix a typo in ipc_message_utils.h. (Closed)
Patch Set: Created 10 years, 9 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
« no previous file with comments | « no previous file | no next file » | 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) 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698