OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef MOJO_EDK_SYSTEM_PORTS_MESSAGE_H__ | 5 #ifndef MOJO_EDK_SYSTEM_PORTS_MESSAGE_H__ |
6 #define MOJO_EDK_SYSTEM_PORTS_MESSAGE_H__ | 6 #define MOJO_EDK_SYSTEM_PORTS_MESSAGE_H__ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // Construct a new PortsMessage backed by a Channel::Message. If | 53 // Construct a new PortsMessage backed by a Channel::Message. If |
54 // |channel_message| is null, a new one is allocated internally. | 54 // |channel_message| is null, a new one is allocated internally. |
55 PortsMessage(size_t num_header_bytes, | 55 PortsMessage(size_t num_header_bytes, |
56 size_t num_payload_bytes, | 56 size_t num_payload_bytes, |
57 size_t num_ports_bytes, | 57 size_t num_ports_bytes, |
58 Channel::MessagePtr channel_message); | 58 Channel::MessagePtr channel_message); |
59 | 59 |
60 Channel::MessagePtr channel_message_; | 60 Channel::MessagePtr channel_message_; |
61 | 61 |
62 // The node name from which this message was received, if known. | 62 // The node name from which this message was received, if known. |
63 ports::NodeName source_node_ = ports::kInvalidNodeName; | 63 ports::NodeName source_node_ = ports::constants::kInvalidNodeName; |
64 }; | 64 }; |
65 | 65 |
66 } // namespace edk | 66 } // namespace edk |
67 } // namespace mojo | 67 } // namespace mojo |
68 | 68 |
69 #endif // MOJO_EDK_SYSTEM_PORTS_MESSAGE_H__ | 69 #endif // MOJO_EDK_SYSTEM_PORTS_MESSAGE_H__ |
OLD | NEW |