| Index: mojo/edk/system/data_pipe.h
|
| diff --git a/mojo/edk/system/data_pipe.h b/mojo/edk/system/data_pipe.h
|
| index 64b18e20a911d9377f20736ffbd5d182904c20a9..d4afddad2bbfd1477c3e4bc41fdfc8b9ecf1cc0d 100644
|
| --- a/mojo/edk/system/data_pipe.h
|
| +++ b/mojo/edk/system/data_pipe.h
|
| @@ -73,7 +73,8 @@ class MOJO_SYSTEM_IMPL_EXPORT DataPipe
|
| // a multiple of |element_num_bytes_|.
|
| MojoResult ConsumerReadData(UserPointer<void> elements,
|
| UserPointer<uint32_t> num_bytes,
|
| - bool all_or_none);
|
| + bool all_or_none,
|
| + bool peek);
|
| MojoResult ConsumerDiscardData(UserPointer<uint32_t> num_bytes,
|
| bool all_or_none);
|
| MojoResult ConsumerQueryData(UserPointer<uint32_t> num_bytes);
|
| @@ -120,7 +121,8 @@ class MOJO_SYSTEM_IMPL_EXPORT DataPipe
|
| UserPointer<void> elements,
|
| UserPointer<uint32_t> num_bytes,
|
| uint32_t max_num_bytes_to_read,
|
| - uint32_t min_num_bytes_to_read) = 0;
|
| + uint32_t min_num_bytes_to_read,
|
| + bool peek) = 0;
|
| virtual MojoResult ConsumerDiscardDataImplNoLock(
|
| UserPointer<uint32_t> num_bytes,
|
| uint32_t max_num_bytes_to_discard,
|
|
|