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_H_ | 5 #ifndef MOJO_EDK_SYSTEM_DATA_PIPE_H_ |
6 #define MOJO_EDK_SYSTEM_DATA_PIPE_H_ | 6 #define MOJO_EDK_SYSTEM_DATA_PIPE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "mojo/edk/embedder/platform_handle_vector.h" | 9 #include "mojo/edk/embedder/platform_handle_vector.h" |
10 #include "mojo/edk/embedder/scoped_platform_handle.h" | 10 #include "mojo/edk/embedder/scoped_platform_handle.h" |
11 #include "mojo/edk/system/system_impl_export.h" | 11 #include "mojo/edk/system/system_impl_export.h" |
12 #include "third_party/mojo/src/mojo/public/c/system/data_pipe.h" | 12 #include "mojo/public/c/system/data_pipe.h" |
13 #include "third_party/mojo/src/mojo/public/c/system/types.h" | 13 #include "mojo/public/c/system/types.h" |
14 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" | 14 #include "mojo/public/cpp/system/macros.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 namespace edk { | 17 namespace edk { |
18 class RawChannel; | 18 class RawChannel; |
19 | 19 |
20 // Shared code between DataPipeConsumerDispatcher and | 20 // Shared code between DataPipeConsumerDispatcher and |
21 // DataPipeProducerDispatcher. | 21 // DataPipeProducerDispatcher. |
22 class MOJO_SYSTEM_IMPL_EXPORT DataPipe { | 22 class MOJO_SYSTEM_IMPL_EXPORT DataPipe { |
23 public: | 23 public: |
24 // The default options for |MojoCreateDataPipe()|. (Real uses should obtain | 24 // The default options for |MojoCreateDataPipe()|. (Real uses should obtain |
(...skipping 29 matching lines...) Expand all Loading... |
54 PlatformHandleVector* platform_handles, | 54 PlatformHandleVector* platform_handles, |
55 MojoCreateDataPipeOptions* options, | 55 MojoCreateDataPipeOptions* options, |
56 ScopedPlatformHandle* shared_memory_handle, | 56 ScopedPlatformHandle* shared_memory_handle, |
57 size_t* shared_memory_size); | 57 size_t* shared_memory_size); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace edk | 60 } // namespace edk |
61 } // namespace mojo | 61 } // namespace mojo |
62 | 62 |
63 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_H_ | 63 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_H_ |
OLD | NEW |