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_SYSTEM_DATA_PIPE_H_ | 5 #ifndef MOJO_SYSTEM_DATA_PIPE_H_ |
6 #define MOJO_SYSTEM_DATA_PIPE_H_ | 6 #define MOJO_SYSTEM_DATA_PIPE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
12 #include "mojo/public/system/core.h" | 12 #include "mojo/public/c/system/core.h" |
13 #include "mojo/system/system_impl_export.h" | 13 #include "mojo/system/system_impl_export.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace system { | 16 namespace system { |
17 | 17 |
18 class Waiter; | 18 class Waiter; |
19 class WaiterList; | 19 class WaiterList; |
20 | 20 |
21 // |DataPipe| is a base class for secondary objects implementing data pipes, | 21 // |DataPipe| is a base class for secondary objects implementing data pipes, |
22 // similar to |MessagePipe| (see the explanatory comment in core_impl.cc). It is | 22 // similar to |MessagePipe| (see the explanatory comment in core_impl.cc). It is |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 uint32_t producer_two_phase_max_num_bytes_written_; | 185 uint32_t producer_two_phase_max_num_bytes_written_; |
186 uint32_t consumer_two_phase_max_num_bytes_read_; | 186 uint32_t consumer_two_phase_max_num_bytes_read_; |
187 | 187 |
188 DISALLOW_COPY_AND_ASSIGN(DataPipe); | 188 DISALLOW_COPY_AND_ASSIGN(DataPipe); |
189 }; | 189 }; |
190 | 190 |
191 } // namespace system | 191 } // namespace system |
192 } // namespace mojo | 192 } // namespace mojo |
193 | 193 |
194 #endif // MOJO_SYSTEM_DATA_PIPE_H_ | 194 #endif // MOJO_SYSTEM_DATA_PIPE_H_ |
OLD | NEW |