OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ipc/ipc_message.h" | 5 #include "ipc/ipc_message.h" |
6 | 6 |
7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
8 | 10 |
9 #include "base/atomic_sequence_num.h" | 11 #include "base/atomic_sequence_num.h" |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
11 #include "build/build_config.h" | 13 #include "build/build_config.h" |
12 #include "ipc/attachment_broker.h" | 14 #include "ipc/attachment_broker.h" |
13 #include "ipc/ipc_message_attachment.h" | 15 #include "ipc/ipc_message_attachment.h" |
14 #include "ipc/ipc_message_attachment_set.h" | 16 #include "ipc/ipc_message_attachment_set.h" |
15 #include "ipc/placeholder_brokerable_attachment.h" | 17 #include "ipc/placeholder_brokerable_attachment.h" |
16 | 18 |
17 #if defined(OS_POSIX) | 19 #if defined(OS_POSIX) |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 bool Message::HasMojoHandles() const { | 291 bool Message::HasMojoHandles() const { |
290 return attachment_set_.get() && attachment_set_->num_mojo_handles() > 0; | 292 return attachment_set_.get() && attachment_set_->num_mojo_handles() > 0; |
291 } | 293 } |
292 | 294 |
293 bool Message::HasBrokerableAttachments() const { | 295 bool Message::HasBrokerableAttachments() const { |
294 return attachment_set_.get() && | 296 return attachment_set_.get() && |
295 attachment_set_->num_brokerable_attachments() > 0; | 297 attachment_set_->num_brokerable_attachments() > 0; |
296 } | 298 } |
297 | 299 |
298 } // namespace IPC | 300 } // namespace IPC |
OLD | NEW |