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

Unified Diff: ipc/ipc_message.cc

Issue 1188923003: Stub in more IPC attachment brokering functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 5 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_message.cc
diff --git a/ipc/ipc_message.cc b/ipc/ipc_message.cc
index 7aa268e6dfba9143a8c9e4d9f7987bd60ffa7628..acdb8607e3a8fe9e00464e05cba31ca7ed3c7bbc 100644
--- a/ipc/ipc_message.cc
+++ b/ipc/ipc_message.cc
@@ -160,4 +160,9 @@ bool Message::HasMojoHandles() const {
return attachment_set_.get() && 0 < attachment_set_->num_mojo_handles();
}
+bool Message::HasBrokerableAttachments() const {
+ return attachment_set_.get() &&
+ 0 < attachment_set_->num_brokerable_attachments();
Tom Sepez 2015/06/19 18:04:11 nit: prefer blah > 0 to 0 < blah despite what the
erikchen 2015/06/23 22:37:00 Done.
+}
+
} // namespace IPC

Powered by Google App Engine
This is Rietveld 408576698