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

Unified Diff: ipc/ipc_message.cc

Issue 866223005: IPC: Add MojoHandleAttachment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing windows buld error Created 5 years, 11 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_message.cc
diff --git a/ipc/ipc_message.cc b/ipc/ipc_message.cc
index c5a5a83cc65dbe3d281bed0c69d35ed3267b6852..e10bef584fd091a22dd34cba7ea7bd30b6fc15e4 100644
--- a/ipc/ipc_message.cc
+++ b/ipc/ipc_message.cc
@@ -155,4 +155,8 @@ bool Message::HasAttachments() const {
return attachment_set_.get() && !attachment_set_->empty();
}
+bool Message::HasMojoHandles() const {
+ return attachment_set_.get() && attachment_set_->num_mojo_handles();
agl 2015/02/04 00:17:46 Feel free to ignore: put "> 0" on the end to avoid
Hajime Morrita 2015/02/04 00:44:51 Done. That's clearer anyway.
+}
+
} // namespace IPC

Powered by Google App Engine
This is Rietveld 408576698