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

Unified Diff: chrome/common/common_param_traits.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: chrome/common/common_param_traits.h
diff --git a/chrome/common/common_param_traits.h b/chrome/common/common_param_traits.h
index 08a1853d9f291f551e23adc16b0e33d96215b0f0..26575e1748789a5d53c92dccf51ecc772dd192b1 100644
--- a/chrome/common/common_param_traits.h
+++ b/chrome/common/common_param_traits.h
@@ -11,6 +11,8 @@
#include "chrome/common/content_settings.h"
#include "ipc/ipc_param_traits.h"
+class PickleReader;
+
namespace IPC {
class Message;
@@ -19,7 +21,7 @@ template <>
struct ParamTraits<ContentSetting> {
typedef ContentSetting param_type;
static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
+ static bool Read(const Message* m, PickleReader* iter, param_type* p);
static void Log(const param_type& p, std::string* l);
};
@@ -27,7 +29,7 @@ template <>
struct ParamTraits<ContentSettingsType> {
typedef ContentSettingsType param_type;
static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
+ static bool Read(const Message* m, PickleReader* iter, param_type* p);
static void Log(const param_type& p, std::string* l);
};

Powered by Google App Engine
This is Rietveld 408576698