diff options
author | rockot <rockot@chromium.org> | 2016-03-18 11:58:15 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-18 18:59:44 +0000 |
commit | 9691a7bf20f969e72b523e5006823901e34cd825 (patch) | |
tree | 5ba43382c2b35806dd3f9426ecde7b06b6ee33d3 /ipc/mojo/ipc_message_pipe_reader.h | |
parent | cd4e139b12f45f81a77d6293f1bb9339464f80f4 (diff) | |
download | chromium_src-9691a7bf20f969e72b523e5006823901e34cd825.zip chromium_src-9691a7bf20f969e72b523e5006823901e34cd825.tar.gz chromium_src-9691a7bf20f969e72b523e5006823901e34cd825.tar.bz2 |
ChannelMojo: Remove intermediate Message struct
This passes the data and handles directly in the Receive
message rather than using an intermediate Message struct.
One less alloc per Send, which seems worthwhile even though
the performance delta is marginal.
R=sammc@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1809323002
Cr-Commit-Position: refs/heads/master@{#382037}
Diffstat (limited to 'ipc/mojo/ipc_message_pipe_reader.h')
-rw-r--r-- | ipc/mojo/ipc_message_pipe_reader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipc/mojo/ipc_message_pipe_reader.h b/ipc/mojo/ipc_message_pipe_reader.h index 75fe7ad..3989c25 100644 --- a/ipc/mojo/ipc_message_pipe_reader.h +++ b/ipc/mojo/ipc_message_pipe_reader.h @@ -92,7 +92,8 @@ class MessagePipeReader : public mojom::Channel { void OnPipeError(MojoResult error); private: - void Receive(mojom::MessagePtr message) override; + void Receive(mojo::Array<uint8_t> data, + mojo::Array<mojom::SerializedHandlePtr> handles) override; // |delegate_| is null once the message pipe is closed. Delegate* delegate_; |