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_LOCAL_DATA_PIPE_H_ | 5 #ifndef MOJO_EDK_SYSTEM_LOCAL_DATA_PIPE_H_ |
6 #define MOJO_EDK_SYSTEM_LOCAL_DATA_PIPE_H_ | 6 #define MOJO_EDK_SYSTEM_LOCAL_DATA_PIPE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/aligned_memory.h" | 9 #include "base/memory/aligned_memory.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 uint32_t max_num_bytes_to_write, | 37 uint32_t max_num_bytes_to_write, |
38 uint32_t min_num_bytes_to_write) override; | 38 uint32_t min_num_bytes_to_write) override; |
39 MojoResult ProducerBeginWriteDataImplNoLock( | 39 MojoResult ProducerBeginWriteDataImplNoLock( |
40 UserPointer<void*> buffer, | 40 UserPointer<void*> buffer, |
41 UserPointer<uint32_t> buffer_num_bytes, | 41 UserPointer<uint32_t> buffer_num_bytes, |
42 uint32_t min_num_bytes_to_write) override; | 42 uint32_t min_num_bytes_to_write) override; |
43 MojoResult ProducerEndWriteDataImplNoLock( | 43 MojoResult ProducerEndWriteDataImplNoLock( |
44 uint32_t num_bytes_written) override; | 44 uint32_t num_bytes_written) override; |
45 HandleSignalsState ProducerGetHandleSignalsStateImplNoLock() const override; | 45 HandleSignalsState ProducerGetHandleSignalsStateImplNoLock() const override; |
46 void ConsumerCloseImplNoLock() override; | 46 void ConsumerCloseImplNoLock() override; |
47 MojoResult ConsumerReadDataImplNoLock( | 47 MojoResult ConsumerReadDataImplNoLock(UserPointer<void> elements, |
48 UserPointer<void> elements, | 48 UserPointer<uint32_t> num_bytes, |
49 UserPointer<uint32_t> num_bytes, | 49 uint32_t max_num_bytes_to_read, |
50 uint32_t max_num_bytes_to_read, | 50 uint32_t min_num_bytes_to_read, |
51 uint32_t min_num_bytes_to_read, | 51 bool peek) override; |
52 bool peek) override; | |
53 MojoResult ConsumerDiscardDataImplNoLock( | 52 MojoResult ConsumerDiscardDataImplNoLock( |
54 UserPointer<uint32_t> num_bytes, | 53 UserPointer<uint32_t> num_bytes, |
55 uint32_t max_num_bytes_to_discard, | 54 uint32_t max_num_bytes_to_discard, |
56 uint32_t min_num_bytes_to_discard) override; | 55 uint32_t min_num_bytes_to_discard) override; |
57 MojoResult ConsumerQueryDataImplNoLock( | 56 MojoResult ConsumerQueryDataImplNoLock( |
58 UserPointer<uint32_t> num_bytes) override; | 57 UserPointer<uint32_t> num_bytes) override; |
59 MojoResult ConsumerBeginReadDataImplNoLock( | 58 MojoResult ConsumerBeginReadDataImplNoLock( |
60 UserPointer<const void*> buffer, | 59 UserPointer<const void*> buffer, |
61 UserPointer<uint32_t> buffer_num_bytes, | 60 UserPointer<uint32_t> buffer_num_bytes, |
62 uint32_t min_num_bytes_to_read) override; | 61 uint32_t min_num_bytes_to_read) override; |
(...skipping 18 matching lines...) Expand all Loading... |
81 size_t start_index_; | 80 size_t start_index_; |
82 size_t current_num_bytes_; | 81 size_t current_num_bytes_; |
83 | 82 |
84 DISALLOW_COPY_AND_ASSIGN(LocalDataPipe); | 83 DISALLOW_COPY_AND_ASSIGN(LocalDataPipe); |
85 }; | 84 }; |
86 | 85 |
87 } // namespace system | 86 } // namespace system |
88 } // namespace mojo | 87 } // namespace mojo |
89 | 88 |
90 #endif // MOJO_EDK_SYSTEM_LOCAL_DATA_PIPE_H_ | 89 #endif // MOJO_EDK_SYSTEM_LOCAL_DATA_PIPE_H_ |
OLD | NEW |