Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Side by Side Diff: mojo/edk/system/data_pipe.h

Issue 724493002: Re-run clang-format on mojo/edk/{embedder,system,test}. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/edk/system/core_unittest.cc ('k') | mojo/edk/system/data_pipe.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 UserPointer<uint32_t> buffer_num_bytes, 110 UserPointer<uint32_t> buffer_num_bytes,
111 uint32_t min_num_bytes_to_write) = 0; 111 uint32_t min_num_bytes_to_write) = 0;
112 virtual MojoResult ProducerEndWriteDataImplNoLock( 112 virtual MojoResult ProducerEndWriteDataImplNoLock(
113 uint32_t num_bytes_written) = 0; 113 uint32_t num_bytes_written) = 0;
114 // Note: A producer should not be writable during a two-phase write. 114 // Note: A producer should not be writable during a two-phase write.
115 virtual HandleSignalsState ProducerGetHandleSignalsStateImplNoLock() 115 virtual HandleSignalsState ProducerGetHandleSignalsStateImplNoLock()
116 const = 0; 116 const = 0;
117 117
118 virtual void ConsumerCloseImplNoLock() = 0; 118 virtual void ConsumerCloseImplNoLock() = 0;
119 // |*num_bytes| will be a nonzero multiple of |element_num_bytes_|. 119 // |*num_bytes| will be a nonzero multiple of |element_num_bytes_|.
120 virtual MojoResult ConsumerReadDataImplNoLock( 120 virtual MojoResult ConsumerReadDataImplNoLock(UserPointer<void> elements,
121 UserPointer<void> elements, 121 UserPointer<uint32_t> num_bytes,
122 UserPointer<uint32_t> num_bytes, 122 uint32_t max_num_bytes_to_read,
123 uint32_t max_num_bytes_to_read, 123 uint32_t min_num_bytes_to_read,
124 uint32_t min_num_bytes_to_read, 124 bool peek) = 0;
125 bool peek) = 0;
126 virtual MojoResult ConsumerDiscardDataImplNoLock( 125 virtual MojoResult ConsumerDiscardDataImplNoLock(
127 UserPointer<uint32_t> num_bytes, 126 UserPointer<uint32_t> num_bytes,
128 uint32_t max_num_bytes_to_discard, 127 uint32_t max_num_bytes_to_discard,
129 uint32_t min_num_bytes_to_discard) = 0; 128 uint32_t min_num_bytes_to_discard) = 0;
130 // |*num_bytes| will be a nonzero multiple of |element_num_bytes_|. 129 // |*num_bytes| will be a nonzero multiple of |element_num_bytes_|.
131 virtual MojoResult ConsumerQueryDataImplNoLock( 130 virtual MojoResult ConsumerQueryDataImplNoLock(
132 UserPointer<uint32_t> num_bytes) = 0; 131 UserPointer<uint32_t> num_bytes) = 0;
133 virtual MojoResult ConsumerBeginReadDataImplNoLock( 132 virtual MojoResult ConsumerBeginReadDataImplNoLock(
134 UserPointer<const void*> buffer, 133 UserPointer<const void*> buffer,
135 UserPointer<uint32_t> buffer_num_bytes, 134 UserPointer<uint32_t> buffer_num_bytes,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 uint32_t producer_two_phase_max_num_bytes_written_; 208 uint32_t producer_two_phase_max_num_bytes_written_;
210 uint32_t consumer_two_phase_max_num_bytes_read_; 209 uint32_t consumer_two_phase_max_num_bytes_read_;
211 210
212 DISALLOW_COPY_AND_ASSIGN(DataPipe); 211 DISALLOW_COPY_AND_ASSIGN(DataPipe);
213 }; 212 };
214 213
215 } // namespace system 214 } // namespace system
216 } // namespace mojo 215 } // namespace mojo
217 216
218 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_H_ 217 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/core_unittest.cc ('k') | mojo/edk/system/data_pipe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698