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

Unified Diff: content/common/resource_messages.h

Issue 2405483002: Make the request initiator Optional (Closed)
Patch Set: Introduce NullableOrigin to use for request initiator Created 4 years, 2 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: 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_

Powered by Google App Engine
This is Rietveld 408576698