Chromium Code Reviews| Index: content/common/resource_messages.h |
| diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h |
| index 6812be78ea8550c09bbde4c7f66cbdf69cb025e6..da6ddcf88a8768eb33e0554dc5e9f7ff1b299ad0 100644 |
| --- a/content/common/resource_messages.h |
| +++ b/content/common/resource_messages.h |
| @@ -107,6 +107,17 @@ struct ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>> { |
| static void Log(const param_type& p, std::string* l); |
| }; |
| +template <> |
| +struct ParamTraits<scoped_refptr<url::NullableOrigin>> { |
|
nasko
2016/10/10 22:28:11
Why not place this next to the ParamTraits for url
|
| + typedef scoped_refptr<url::NullableOrigin> param_type; |
| + static void GetSize(base::PickleSizer* s, const 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); |
| +}; |
| + |
| } // namespace IPC |
| #endif // CONTENT_COMMON_RESOURCE_MESSAGES_H_ |