OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MESSAGE_IN_TRANSIT_H_ | 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ |
6 #define MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ | 6 #define MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <ostream> | 11 #include <ostream> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/memory/aligned_memory.h" | 14 #include "base/memory/aligned_memory.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "mojo/edk/system/dispatcher.h" | 16 #include "mojo/edk/system/dispatcher.h" |
17 #include "mojo/edk/system/system_impl_export.h" | 17 #include "mojo/edk/system/system_impl_export.h" |
18 #include "mojo/public/cpp/system/macros.h" | 18 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" |
19 | 19 |
20 namespace mojo { | 20 namespace mojo { |
21 namespace edk { | 21 namespace edk { |
22 | 22 |
23 class RawChannel; | 23 class RawChannel; |
24 class TransportData; | 24 class TransportData; |
25 | 25 |
26 // This class is used to represent data in transit. It is thread-unsafe. | 26 // This class is used to represent data in transit. It is thread-unsafe. |
27 // | 27 // |
28 // |MessageInTransit| buffers: | 28 // |MessageInTransit| buffers: |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 MOJO_SYSTEM_IMPL_EXPORT inline std::ostream& operator<<( | 231 MOJO_SYSTEM_IMPL_EXPORT inline std::ostream& operator<<( |
232 std::ostream& out, | 232 std::ostream& out, |
233 MessageInTransit::Type type) { | 233 MessageInTransit::Type type) { |
234 return out << static_cast<uint16_t>(type); | 234 return out << static_cast<uint16_t>(type); |
235 } | 235 } |
236 | 236 |
237 } // namespace edk | 237 } // namespace edk |
238 } // namespace mojo | 238 } // namespace mojo |
239 | 239 |
240 #endif // MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ | 240 #endif // MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ |
OLD | NEW |