Index: content/public/common/common_param_traits.h |
diff --git a/content/public/common/common_param_traits.h b/content/public/common/common_param_traits.h |
index e3f5142a1d4caa681823dc331b024fca8d88d226..5f55f13f72748ad9d9f2505f9eacb28a779cf6eb 100644 |
--- a/content/public/common/common_param_traits.h |
+++ b/content/public/common/common_param_traits.h |
@@ -47,62 +47,75 @@ namespace IPC { |
template <> |
struct CONTENT_EXPORT ParamTraits<GURL> { |
typedef GURL param_type; |
- static void Write(Message* m, const param_type& p); |
- static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); |
+ static void Write(base::Pickle* m, const param_type& p); |
+ static bool Read(const base::Pickle* m, |
+ base::PickleIterator* iter, |
+ param_type* p); |
static void Log(const param_type& p, std::string* l); |
}; |
template <> |
struct CONTENT_EXPORT ParamTraits<url::Origin> { |
typedef url::Origin param_type; |
- static void Write(Message* m, const param_type& p); |
- static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); |
+ static void Write(base::Pickle* m, const param_type& p); |
+ static bool Read(const base::Pickle* m, |
+ base::PickleIterator* iter, |
+ param_type* p); |
static void Log(const param_type& p, std::string* l); |
}; |
template<> |
struct CONTENT_EXPORT ParamTraits<net::HostPortPair> { |
typedef net::HostPortPair param_type; |
- static void Write(Message* m, const param_type& p); |
- static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); |
+ static void Write(base::Pickle* m, const param_type& p); |
+ static bool Read(const base::Pickle* m, |
+ base::PickleIterator* iter, |
+ param_type* r); |
static void Log(const param_type& p, std::string* l); |
}; |
template <> |
struct CONTENT_EXPORT ParamTraits<net::IPEndPoint> { |
typedef net::IPEndPoint param_type; |
- static void Write(Message* m, const param_type& p); |
- static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); |
+ static void Write(base::Pickle* m, const param_type& p); |
+ static bool Read(const base::Pickle* m, |
+ base::PickleIterator* iter, |
+ param_type* p); |
static void Log(const param_type& p, std::string* l); |
}; |
template <> |
struct CONTENT_EXPORT ParamTraits<net::IPAddress> { |
typedef net::IPAddress param_type; |
- static void Write(Message* m, const param_type& p); |
- static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); |
+ static void Write(base::Pickle* m, const param_type& p); |
+ static bool Read(const base::Pickle* m, |
+ base::PickleIterator* iter, |
+ param_type* p); |
static void Log(const param_type& p, std::string* l); |
}; |
template <> |
struct CONTENT_EXPORT ParamTraits<content::PageState> { |
typedef content::PageState param_type; |
- static void Write(Message* m, const param_type& p); |
- static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); |
+ static void Write(base::Pickle* m, const param_type& p); |
+ static bool Read(const base::Pickle* m, |
+ base::PickleIterator* iter, |
+ param_type* p); |
static void Log(const param_type& p, std::string* l); |
}; |
template <> |
struct ParamTraits<gfx::NativeWindow> { |
typedef gfx::NativeWindow param_type; |
- static void Write(Message* m, const param_type& p) { |
+ static void Write(base::Pickle* m, const param_type& p) { |
#if defined(OS_WIN) |
m->WriteUInt32(base::win::HandleToUint32(p)); |
#else |
m->WriteData(reinterpret_cast<const char*>(&p), sizeof(p)); |
#endif |
} |
- static bool Read(const Message* m, base::PickleIterator* iter, |
+ static bool Read(const base::Pickle* m, |
+ base::PickleIterator* iter, |
param_type* r) { |
#if defined(OS_WIN) |
return iter->ReadUInt32(reinterpret_cast<uint32_t*>(r)); |