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

Unified Diff: ipc/ipc_message_pipe_reader.cc

Issue 2493623002: Remove IPC::Endpoint. (Closed)
Patch Set: Created 4 years, 1 month 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_pipe_reader.h ('k') | ipc/ipc_test_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message_pipe_reader.cc
diff --git a/ipc/ipc_message_pipe_reader.cc b/ipc/ipc_message_pipe_reader.cc
index a20489bb41107cac098cdcdfc464c590c13c21b8..32c7c242eeb111edf9a090a22fd92680359aac0d 100644
--- a/ipc/ipc_message_pipe_reader.cc
+++ b/ipc/ipc_message_pipe_reader.cc
@@ -85,18 +85,15 @@ void MessagePipeReader::GetRemoteInterface(
}
void MessagePipeReader::SetPeerPid(int32_t peer_pid) {
- peer_pid_ = peer_pid;
- delegate_->OnPeerPidReceived();
+ delegate_->OnPeerPidReceived(peer_pid);
}
void MessagePipeReader::Receive(
const std::vector<uint8_t>& data,
base::Optional<std::vector<mojom::SerializedHandlePtr>> handles) {
- DCHECK_NE(peer_pid_, base::kNullProcessId);
Message message(
data.empty() ? "" : reinterpret_cast<const char*>(data.data()),
static_cast<uint32_t>(data.size()));
- message.set_sender_pid(peer_pid_);
DVLOG(4) << "Receive " << message.type() << ": " << message.size();
MojoResult write_result =
« no previous file with comments | « ipc/ipc_message_pipe_reader.h ('k') | ipc/ipc_test_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698