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

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: comments 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
« no previous file with comments | « ipc/ipc_message_utils_unittest.cc ('k') | ipc/ipc_mojo_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..39be43e217a300d337f0cd7d9e9fcb96041ae54f 100644
--- a/ipc/ipc_mojo_param_traits.h
+++ b/ipc/ipc_mojo_param_traits.h
@@ -12,18 +12,20 @@
#include "mojo/public/cpp/system/message_pipe.h"
namespace base {
+class Pickle;
class PickleIterator;
+class PickleSizer;
}
namespace IPC {
-class Message;
-
template <>
struct IPC_EXPORT ParamTraits<mojo::MessagePipeHandle> {
typedef mojo::MessagePipeHandle param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
+ 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);
};
« no previous file with comments | « ipc/ipc_message_utils_unittest.cc ('k') | ipc/ipc_mojo_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698