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

Side by Side Diff: chrome/common/ipc_message_utils.h

Issue 16479: Bring up chrome/common/render_mesages.cc on POSIX. (Closed)
Patch Set: also bring up message_router.cc. Created 11 years, 12 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
OLDNEW
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 static bool Read(const Message* m, void** iter, param_type* r) { 156 static bool Read(const Message* m, void** iter, param_type* r) {
157 return m->ReadSize(iter, r); 157 return m->ReadSize(iter, r);
158 } 158 }
159 static void Log(const param_type& p, std::wstring* l) { 159 static void Log(const param_type& p, std::wstring* l) {
160 l->append(StringPrintf(L"%u", p)); 160 l->append(StringPrintf(L"%u", p));
161 } 161 }
162 }; 162 };
163 163
164 template <> 164 template <>
165 struct ParamTraits<uint32> {
166 typedef uint32 param_type;
167 static void Write(Message* m, const param_type& p) {
168 m->WriteUInt32(p);
169 }
170 static bool Read(const Message* m, void** iter, param_type* r) {
171 return m->ReadUInt32(iter, r);
172 }
173 static void Log(const param_type& p, std::wstring* l) {
174 l->append(StringPrintf(L"%u", p));
175 }
176 };
177
178 template <>
165 struct ParamTraits<int64> { 179 struct ParamTraits<int64> {
166 typedef int64 param_type; 180 typedef int64 param_type;
167 static void Write(Message* m, const param_type& p) { 181 static void Write(Message* m, const param_type& p) {
168 m->WriteInt64(p); 182 m->WriteInt64(p);
169 } 183 }
170 static bool Read(const Message* m, void** iter, param_type* r) { 184 static bool Read(const Message* m, void** iter, param_type* r) {
171 return m->ReadInt64(iter, r); 185 return m->ReadInt64(iter, r);
172 } 186 }
173 static void Log(const param_type& p, std::wstring* l) { 187 static void Log(const param_type& p, std::wstring* l) {
174 l->append(StringPrintf(L"%I64d", p)); 188 l->append(StringPrintf(L"%I64d", p));
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 l->append(L"<FindInPageRequest>"); 1250 l->append(L"<FindInPageRequest>");
1237 } 1251 }
1238 }; 1252 };
1239 1253
1240 //----------------------------------------------------------------------------- 1254 //-----------------------------------------------------------------------------
1241 1255
1242 } // namespace IPC 1256 } // namespace IPC
1243 1257
1244 #endif // CHROME_COMMON_IPC_MESSAGE_UTILS_H_ 1258 #endif // CHROME_COMMON_IPC_MESSAGE_UTILS_H_
1245 1259
OLDNEW
« base/pickle.cc ('K') | « chrome/common/common.scons ('k') | webkit/glue/webinputevent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698