diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_message.cc | 12 | ||||
-rw-r--r-- | ipc/ipc_message.h | 7 |
2 files changed, 0 insertions, 19 deletions
diff --git a/ipc/ipc_message.cc b/ipc/ipc_message.cc index e9e1dcb..07d5d25 100644 --- a/ipc/ipc_message.cc +++ b/ipc/ipc_message.cc @@ -46,9 +46,6 @@ Message::~Message() { Message::Message() : base::Pickle(sizeof(Header)) { header()->routing = header()->type = 0; header()->flags = GetRefNumUpper24(); -#if USE_ATTACHMENT_BROKER - header()->num_brokered_attachments = 0; -#endif #if defined(OS_POSIX) header()->num_fds = 0; header()->pad = 0; @@ -62,9 +59,6 @@ Message::Message(int32 routing_id, uint32 type, PriorityValue priority) header()->type = type; DCHECK((priority & 0xffffff00) == 0); header()->flags = priority | GetRefNumUpper24(); -#if USE_ATTACHMENT_BROKER - header()->num_brokered_attachments = 0; -#endif #if defined(OS_POSIX) header()->num_fds = 0; header()->pad = 0; @@ -137,12 +131,6 @@ bool Message::WriteAttachment(scoped_refptr<MessageAttachment> attachment) { // We write the index of the descriptor so that we don't have to // keep the current descriptor as extra decoding state when deserialising. WriteInt(attachment_set()->size()); - -#if USE_ATTACHMENT_BROKER - if (attachment->GetType() == MessageAttachment::TYPE_BROKERABLE_ATTACHMENT) - header()->num_brokered_attachments += 1; -#endif - return attachment_set()->AddAttachment(attachment); } diff --git a/ipc/ipc_message.h b/ipc/ipc_message.h index d0e38af..d12f6a3 100644 --- a/ipc/ipc_message.h +++ b/ipc/ipc_message.h @@ -11,7 +11,6 @@ #include "base/memory/ref_counted.h" #include "base/pickle.h" #include "base/trace_event/trace_event.h" -#include "ipc/attachment_broker.h" #include "ipc/ipc_export.h" #if !defined(NDEBUG) @@ -223,12 +222,6 @@ class IPC_EXPORT Message : public base::Pickle { int32 routing; // ID of the view that this message is destined for uint32 type; // specifies the user-defined message type uint32 flags; // specifies control flags for the message -#if USE_ATTACHMENT_BROKER - // The number of brokered attachments included with this message. The - // ids of the brokered attachment ids are sent immediately after the pickled - // message, before the next pickled message is sent. - uint32 num_brokered_attachments; -#endif #if defined(OS_POSIX) uint16 num_fds; // the number of descriptors included with this message uint16 pad; // explicitly initialize this to appease valgrind |