| Index: mojo/edk/system/dispatcher.cc
|
| diff --git a/mojo/edk/system/dispatcher.cc b/mojo/edk/system/dispatcher.cc
|
| index 1c98a99f5b2684ceb868a802cdba296b73f58603..386fa0eae9a213d0e4d5d774d99049df8329f6aa 100644
|
| --- a/mojo/edk/system/dispatcher.cc
|
| +++ b/mojo/edk/system/dispatcher.cc
|
| @@ -140,6 +140,25 @@ MojoResult Dispatcher::ReadMessage(UserPointer<void> bytes,
|
| flags);
|
| }
|
|
|
| +MojoResult Dispatcher::SetDataPipeProducerOptions(
|
| + UserPointer<const MojoDataPipeProducerOptions> options) {
|
| + MutexLocker locker(&mutex_);
|
| + if (is_closed_)
|
| + return MOJO_RESULT_INVALID_ARGUMENT;
|
| +
|
| + return SetDataPipeProducerOptionsImplNoLock(options);
|
| +}
|
| +
|
| +MojoResult Dispatcher::GetDataPipeProducerOptions(
|
| + UserPointer<MojoDataPipeProducerOptions> options,
|
| + uint32_t options_num_bytes) {
|
| + MutexLocker locker(&mutex_);
|
| + if (is_closed_)
|
| + return MOJO_RESULT_INVALID_ARGUMENT;
|
| +
|
| + return GetDataPipeProducerOptionsImplNoLock(options, options_num_bytes);
|
| +}
|
| +
|
| MojoResult Dispatcher::WriteData(UserPointer<const void> elements,
|
| UserPointer<uint32_t> num_bytes,
|
| MojoWriteDataFlags flags) {
|
| @@ -326,6 +345,21 @@ MojoResult Dispatcher::ReadMessageImplNoLock(
|
| return MOJO_RESULT_INVALID_ARGUMENT;
|
| }
|
|
|
| +MojoResult Dispatcher::SetDataPipeProducerOptionsImplNoLock(
|
| + UserPointer<const MojoDataPipeProducerOptions> /*options*/) {
|
| + mutex_.AssertHeld();
|
| + DCHECK(!is_closed_);
|
| + return MOJO_RESULT_INVALID_ARGUMENT;
|
| +}
|
| +
|
| +MojoResult Dispatcher::GetDataPipeProducerOptionsImplNoLock(
|
| + UserPointer<MojoDataPipeProducerOptions> /*options*/,
|
| + uint32_t /*options_num_bytes*/) {
|
| + mutex_.AssertHeld();
|
| + DCHECK(!is_closed_);
|
| + return MOJO_RESULT_INVALID_ARGUMENT;
|
| +}
|
| +
|
| MojoResult Dispatcher::WriteDataImplNoLock(UserPointer<const void> /*elements*/,
|
| UserPointer<uint32_t> /*num_bytes*/,
|
| MojoWriteDataFlags /*flags*/) {
|
|
|