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

Unified Diff: content/common/content_param_traits.h

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Eliminate unnecessary PostTask Created 3 years, 10 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/content_param_traits.h
diff --git a/content/common/content_param_traits.h b/content/common/content_param_traits.h
index 5ce29da76453f742a12d1222e7bcc91dda4fff7b..c20b75d1b8abae96f96ba24b020730b8268afc5a 100644
--- a/content/common/content_param_traits.h
+++ b/content/common/content_param_traits.h
@@ -18,6 +18,10 @@
#include "content/common/cursors/webcursor.h"
#include "third_party/WebKit/public/platform/WebInputEvent.h"
+namespace content {
+class MessagePort;
+}
+
namespace IPC {
template <>
@@ -47,6 +51,16 @@ struct ParamTraits<WebInputEventPointer> {
static void Log(const param_type& p, std::string* l);
};
+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);
+};
+
} // namespace IPC
#endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698