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

Unified Diff: ipc/ipc_message_attachment_set.h

Issue 1188923003: Stub in more IPC attachment brokering functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase properly. Created 5 years, 5 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_attachment.h ('k') | ipc/ipc_message_attachment_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message_attachment_set.h
diff --git a/ipc/ipc_message_attachment_set.h b/ipc/ipc_message_attachment_set.h
index 7e848bd3f544207c35f117f5cd06b7055c51e710..bd113012aff5507f40e31720346797165755db1b 100644
--- a/ipc/ipc_message_attachment_set.h
+++ b/ipc/ipc_message_attachment_set.h
@@ -18,6 +18,7 @@
namespace IPC {
+class BrokerableAttachment;
class MessageAttachment;
// -----------------------------------------------------------------------------
@@ -37,6 +38,8 @@ class IPC_EXPORT MessageAttachmentSet
unsigned num_descriptors() const;
// Return the number of mojo handles in the attachment set
unsigned num_mojo_handles() const;
+ // Return the number of brokerable attachments in the attachment set.
+ unsigned num_brokerable_attachments() const;
// Return true if no unconsumed descriptors remain
bool empty() const { return 0 == size(); }
@@ -56,6 +59,9 @@ class IPC_EXPORT MessageAttachmentSet
// which are auto-close.
void CommitAll();
+ // Returns a vector of all brokerable attachments.
+ std::vector<const BrokerableAttachment*> PeekBrokerableAttachments() const;
+
#if defined(OS_POSIX)
// This is the maximum number of descriptors per message. We need to know this
// because the control message kernel interface has to be given a buffer which
« no previous file with comments | « ipc/ipc_message_attachment.h ('k') | ipc/ipc_message_attachment_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698