summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_message.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipc_message.cc')
-rw-r--r--ipc/ipc_message.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipc/ipc_message.cc b/ipc/ipc_message.cc
index b1eaaae..cf3a65e 100644
--- a/ipc/ipc_message.cc
+++ b/ipc/ipc_message.cc
@@ -50,11 +50,12 @@ Message::Message()
InitLoggingVariables();
}
-Message::Message(int32 routing_id, uint32 type)
+Message::Message(int32 routing_id, uint32 type, PriorityValue priority)
: Pickle(sizeof(Header)) {
header()->routing = routing_id;
header()->type = type;
- header()->flags = GetRefNumUpper24();
+ DCHECK((priority & 0xffffff00) == 0);
+ header()->flags = priority | GetRefNumUpper24();
#if defined(OS_POSIX)
header()->num_fds = 0;
header()->pad = 0;
@@ -62,8 +63,7 @@ Message::Message(int32 routing_id, uint32 type)
InitLoggingVariables();
}
-Message::Message(const char* data, size_t data_len)
- : Pickle(data, data_len) {
+Message::Message(const char* data, int data_len) : Pickle(data, data_len) {
InitLoggingVariables();
}