| Index: content/public/common/common_param_traits.cc
|
| diff --git a/content/public/common/common_param_traits.cc b/content/public/common/common_param_traits.cc
|
| index de32860dd45a0c62e31f8f89e315094175ecda79..f2a5c8a0e9d66798f1030cc6047a4ba0ad1872ee 100644
|
| --- a/content/public/common/common_param_traits.cc
|
| +++ b/content/public/common/common_param_traits.cc
|
| @@ -5,6 +5,7 @@
|
| #include "content/public/common/common_param_traits.h"
|
|
|
| #include "content/public/common/content_constants.h"
|
| +#include "content/public/common/page_state.h"
|
| #include "content/public/common/referrer.h"
|
| #include "net/base/host_port_pair.h"
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
| @@ -106,6 +107,27 @@ void ParamTraits<net::HostPortPair>::Log(const param_type& p, std::string* l) {
|
| l->append(p.ToString());
|
| }
|
|
|
| +void ParamTraits<content::PageState>::Write(
|
| + Message* m, const param_type& p) {
|
| + WriteParam(m, p.ToEncodedData());
|
| +}
|
| +
|
| +bool ParamTraits<content::PageState>::Read(
|
| + const Message* m, PickleIterator* iter, param_type* r) {
|
| + std::string data;
|
| + if (!ReadParam(m, iter, &data))
|
| + return false;
|
| + *r = content::PageState::CreateFromEncodedData(data);
|
| + return true;
|
| +}
|
| +
|
| +void ParamTraits<content::PageState>::Log(
|
| + const param_type& p, std::string* l) {
|
| + l->append("(");
|
| + LogParam(p.ToEncodedData(), l);
|
| + l->append(")");
|
| +}
|
| +
|
| void ParamTraits<content::Referrer>::Write(
|
| Message* m, const param_type& p) {
|
| WriteParam(m, p.url);
|
|
|