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

Unified Diff: ipc/param_traits_read_macros.h

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jar feedback Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ipc/param_traits_read_macros.h
diff --git a/ipc/param_traits_read_macros.h b/ipc/param_traits_read_macros.h
index a78c88001a54e3045c52f20062b4c1da40a55a85..9960d2a2c343641faf452fa42dd759a6b45b0f90 100644
--- a/ipc/param_traits_read_macros.h
+++ b/ipc/param_traits_read_macros.h
@@ -27,7 +27,7 @@
#undef IPC_STRUCT_TRAITS_END
#define IPC_STRUCT_TRAITS_BEGIN(struct_name) \
bool ParamTraits<struct_name>:: \
- Read(const Message* m, void** iter, param_type* p) { \
+ Read(const Message* m, PickleReader* iter, param_type* p) { \
return
#define IPC_STRUCT_TRAITS_MEMBER(name) ReadParam(m, iter, &p->name) &&
#define IPC_STRUCT_TRAITS_PARENT(type) ParamTraits<type>::Read(m, iter, p) &&
@@ -36,7 +36,7 @@
#undef IPC_ENUM_TRAITS
#define IPC_ENUM_TRAITS(enum_name) \
bool ParamTraits<enum_name>:: \
- Read(const Message* m, void** iter, param_type* p) { \
+ Read(const Message* m, PickleReader* iter, param_type* p) { \
int type; \
if (!m->ReadInt(iter, &type)) \
return false; \

Powered by Google App Engine
This is Rietveld 408576698