#include "ipc/ipc_message_attachment_set.h"
#include <stddef.h>
#include <algorithm>
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
#include "build/build_config.h"
#include "ipc/ipc_message_attachment.h"
namespace IPC {
namespace {
unsigned count_attachments_of_type(
const std::vector<scoped_refptr<MessageAttachment>>& attachments,
MessageAttachment::Type type) { … }
}
MessageAttachmentSet::MessageAttachmentSet()
: … { … }
MessageAttachmentSet::~MessageAttachmentSet() { … }
unsigned MessageAttachmentSet::num_descriptors() const { … }
unsigned MessageAttachmentSet::size() const { … }
bool MessageAttachmentSet::AddAttachment(
scoped_refptr<MessageAttachment> attachment,
size_t* index) { … }
bool MessageAttachmentSet::AddAttachment(
scoped_refptr<MessageAttachment> attachment) { … }
scoped_refptr<MessageAttachment> MessageAttachmentSet::GetAttachmentAt(
unsigned index) { … }
void MessageAttachmentSet::CommitAllDescriptors() { … }
}