summaryrefslogtreecommitdiff
path: root/chromium/ipc/ipc_message.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-08-14 11:38:45 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-08-14 17:16:47 +0000
commit3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859 (patch)
tree43cc572ba067417c7341db81f71ae7cc6e0fcc3e /chromium/ipc/ipc_message.cc
parentf61ab1ac7f855cd281809255c0aedbb1895e1823 (diff)
downloadqtwebengine-chromium-3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859.tar.gz
BASELINE: Update chromium to 45.0.2454.40
Change-Id: Id2121d9f11a8fc633677236c65a3e41feef589e4 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'chromium/ipc/ipc_message.cc')
-rw-r--r--chromium/ipc/ipc_message.cc21
1 files changed, 13 insertions, 8 deletions
diff --git a/chromium/ipc/ipc_message.cc b/chromium/ipc/ipc_message.cc
index 2587b0b112b..fcdbb6aa6d5 100644
--- a/chromium/ipc/ipc_message.cc
+++ b/chromium/ipc/ipc_message.cc
@@ -43,8 +43,7 @@ namespace IPC {
Message::~Message() {
}
-Message::Message()
- : Pickle(sizeof(Header)) {
+Message::Message() : base::Pickle(sizeof(Header)) {
header()->routing = header()->type = 0;
header()->flags = GetRefNumUpper24();
#if defined(OS_POSIX)
@@ -55,7 +54,7 @@ Message::Message()
}
Message::Message(int32 routing_id, uint32 type, PriorityValue priority)
- : Pickle(sizeof(Header)) {
+ : base::Pickle(sizeof(Header)) {
header()->routing = routing_id;
header()->type = type;
DCHECK((priority & 0xffffff00) == 0);
@@ -67,11 +66,12 @@ Message::Message(int32 routing_id, uint32 type, PriorityValue priority)
Init();
}
-Message::Message(const char* data, int data_len) : Pickle(data, data_len) {
+Message::Message(const char* data, int data_len)
+ : base::Pickle(data, data_len) {
Init();
}
-Message::Message(const Message& other) : Pickle(other) {
+Message::Message(const Message& other) : base::Pickle(other) {
Init();
#if defined(OS_POSIX)
attachment_set_ = other.attachment_set_;
@@ -88,7 +88,7 @@ void Message::Init() {
}
Message& Message::operator=(const Message& other) {
- *static_cast<Pickle*>(this) = other;
+ *static_cast<base::Pickle*>(this) = other;
#if defined(OS_POSIX)
attachment_set_ = other.attachment_set_;
#endif
@@ -138,7 +138,7 @@ bool Message::WriteAttachment(scoped_refptr<MessageAttachment> attachment) {
}
bool Message::ReadAttachment(
- PickleIterator* iter,
+ base::PickleIterator* iter,
scoped_refptr<MessageAttachment>* attachment) const {
int descriptor_index;
if (!iter->ReadInt(&descriptor_index))
@@ -157,7 +157,12 @@ bool Message::HasAttachments() const {
}
bool Message::HasMojoHandles() const {
- return attachment_set_.get() && 0 < attachment_set_->num_mojo_handles();
+ return attachment_set_.get() && attachment_set_->num_mojo_handles() > 0;
+}
+
+bool Message::HasBrokerableAttachments() const {
+ return attachment_set_.get() &&
+ attachment_set_->num_brokerable_attachments() > 0;
}
} // namespace IPC