OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DATA_PIPE_IMPL_H_ | 5 #ifndef MOJO_EDK_SYSTEM_DATA_PIPE_IMPL_H_ |
6 #define MOJO_EDK_SYSTEM_DATA_PIPE_IMPL_H_ | 6 #define MOJO_EDK_SYSTEM_DATA_PIPE_IMPL_H_ |
7 | 7 |
| 8 #include <mojo/macros.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 | 10 |
10 #include <utility> | 11 #include <utility> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "mojo/edk/platform/scoped_platform_handle.h" | 14 #include "mojo/edk/platform/scoped_platform_handle.h" |
14 #include "mojo/edk/system/data_pipe.h" | 15 #include "mojo/edk/system/data_pipe.h" |
15 #include "mojo/edk/system/handle_signals_state.h" | 16 #include "mojo/edk/system/handle_signals_state.h" |
16 #include "mojo/edk/system/memory.h" | 17 #include "mojo/edk/system/memory.h" |
17 #include "mojo/edk/util/thread_annotations.h" | 18 #include "mojo/edk/util/thread_annotations.h" |
18 #include "mojo/public/c/system/data_pipe.h" | 19 #include "mojo/public/c/system/data_pipe.h" |
19 #include "mojo/public/c/system/macros.h" | |
20 #include "mojo/public/c/system/result.h" | 20 #include "mojo/public/c/system/result.h" |
21 | 21 |
22 namespace mojo { | 22 namespace mojo { |
23 namespace system { | 23 namespace system { |
24 | 24 |
25 class Channel; | 25 class Channel; |
26 class MessageInTransit; | 26 class MessageInTransit; |
27 | 27 |
28 // Base class/interface for classes that "implement" |DataPipe| for various | 28 // Base class/interface for classes that "implement" |DataPipe| for various |
29 // situations (local versus remote). The methods, other than the constructor, | 29 // situations (local versus remote). The methods, other than the constructor, |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 struct MOJO_ALIGNAS(8) SerializedDataPipeConsumerDispatcher { | 201 struct MOJO_ALIGNAS(8) SerializedDataPipeConsumerDispatcher { |
202 // Only validated (and thus canonicalized) options should be serialized. | 202 // Only validated (and thus canonicalized) options should be serialized. |
203 // However, the deserializer must revalidate (as with everything received). | 203 // However, the deserializer must revalidate (as with everything received). |
204 MojoCreateDataPipeOptions validated_options; | 204 MojoCreateDataPipeOptions validated_options; |
205 }; | 205 }; |
206 | 206 |
207 } // namespace system | 207 } // namespace system |
208 } // namespace mojo | 208 } // namespace mojo |
209 | 209 |
210 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_IMPL_H_ | 210 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_IMPL_H_ |
OLD | NEW |