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

Unified Diff: ipc/ipc_mojo_param_traits.h

Issue 2047233002: Support using a Mojo message pipe in a ChannelHandle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-handle-attachemnt-public-api
Patch Set: rebase Created 4 years, 6 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 a474f7b1df9a9dbb5ef5882a47d96aae1e9f7dd8..8c4fd18b0a3c7625c141c7518700fd5caceb2b04 100644
--- a/ipc/ipc_mojo_param_traits.h
+++ b/ipc/ipc_mojo_param_traits.h
@@ -13,6 +13,7 @@
namespace base {
class PickleIterator;
+class PickleSizer;
}
namespace IPC {
@@ -22,6 +23,7 @@ class Message;
template <>
struct IPC_EXPORT ParamTraits<mojo::MessagePipeHandle> {
typedef mojo::MessagePipeHandle param_type;
+ static void GetSize(base::PickleSizer* sizer, const param_type& p);
static void Write(Message* m, const param_type& p);
static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
static void Log(const param_type& p, std::string* l);

Powered by Google App Engine
This is Rietveld 408576698