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

Unified Diff: content/public/common/common_param_traits.h

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add metrics and support for non-ASCII text messages to Java endpoints Created 3 years, 11 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/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 86659951f7520817ef36bb26c3cd7f077012c93f..64031494161a8000b4a8f95f49b485e9acb0ffe7 100644
--- a/content/public/common/common_param_traits.h
+++ b/content/public/common/common_param_traits.h
@@ -33,6 +33,7 @@
#endif
namespace content {
+class MessagePort;
class PageState;
}
@@ -89,6 +90,16 @@ struct CONTENT_EXPORT ParamTraits<net::IPAddress> {
};
template <>
+struct CONTENT_EXPORT ParamTraits<content::MessagePort> {
+ typedef content::MessagePort param_type;
+ static void GetSize(base::PickleSizer* sizer, 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* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template <>
struct CONTENT_EXPORT ParamTraits<content::PageState> {
typedef content::PageState param_type;
static void GetSize(base::PickleSizer* s, const param_type& p);

Powered by Google App Engine
This is Rietveld 408576698