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

Unified Diff: ipc/ipc_mojo_param_traits.h

Issue 2813243002: network service: pass PlzNavigate resulting data via mojo data pipe (Closed)
Patch Set: . Created 3 years, 8 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: ipc/ipc_mojo_param_traits.h
diff --git a/ipc/ipc_mojo_param_traits.h b/ipc/ipc_mojo_param_traits.h
index 39be43e217a300d337f0cd7d9e9fcb96041ae54f..a4d0228c0a650b5ffbf4511d6efb0e63e44da289 100644
--- a/ipc/ipc_mojo_param_traits.h
+++ b/ipc/ipc_mojo_param_traits.h
@@ -9,6 +9,7 @@
#include "ipc/ipc_export.h"
#include "ipc/ipc_param_traits.h"
+#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/public/cpp/system/message_pipe.h"
namespace base {
@@ -29,6 +30,17 @@ struct IPC_EXPORT ParamTraits<mojo::MessagePipeHandle> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct IPC_EXPORT ParamTraits<mojo::DataPipeConsumerHandle> {
+ typedef mojo::DataPipeConsumerHandle 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 // IPC_IPC_MOJO_PARAM_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698