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

Unified Diff: mojo/edk/system/core.cc

Issue 1963053003: Add rights for get/set options. Update message pipe and data pipe APIs. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/edk/system/core_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/core.cc
diff --git a/mojo/edk/system/core.cc b/mojo/edk/system/core.cc
index 1f2ba7e97dc796f15e7521c21414a76d257b18df..a8c2007dba6610e83724ac33d49b944c38bcc29e 100644
--- a/mojo/edk/system/core.cc
+++ b/mojo/edk/system/core.cc
@@ -441,7 +441,7 @@ MojoResult Core::SetDataPipeProducerOptions(
UserPointer<const MojoDataPipeProducerOptions> options) {
RefPtr<Dispatcher> dispatcher;
MojoResult result = GetDispatcherAndCheckRights(
- data_pipe_producer_handle, MOJO_HANDLE_RIGHT_WRITE,
+ data_pipe_producer_handle, MOJO_HANDLE_RIGHT_SET_OPTIONS,
EntrypointClass::DATA_PIPE_PRODUCER, &dispatcher);
if (result != MOJO_RESULT_OK)
return result;
@@ -455,7 +455,7 @@ MojoResult Core::GetDataPipeProducerOptions(
uint32_t options_num_bytes) {
RefPtr<Dispatcher> dispatcher;
MojoResult result = GetDispatcherAndCheckRights(
- data_pipe_producer_handle, MOJO_HANDLE_RIGHT_READ,
+ data_pipe_producer_handle, MOJO_HANDLE_RIGHT_GET_OPTIONS,
EntrypointClass::DATA_PIPE_PRODUCER, &dispatcher);
if (result != MOJO_RESULT_OK)
return result;
@@ -508,7 +508,7 @@ MojoResult Core::SetDataPipeConsumerOptions(
UserPointer<const MojoDataPipeConsumerOptions> options) {
RefPtr<Dispatcher> dispatcher;
MojoResult result = GetDispatcherAndCheckRights(
- data_pipe_consumer_handle, MOJO_HANDLE_RIGHT_WRITE,
+ data_pipe_consumer_handle, MOJO_HANDLE_RIGHT_SET_OPTIONS,
EntrypointClass::DATA_PIPE_CONSUMER, &dispatcher);
if (result != MOJO_RESULT_OK)
return result;
@@ -522,7 +522,7 @@ MojoResult Core::GetDataPipeConsumerOptions(
uint32_t options_num_bytes) {
RefPtr<Dispatcher> dispatcher;
MojoResult result = GetDispatcherAndCheckRights(
- data_pipe_consumer_handle, MOJO_HANDLE_RIGHT_READ,
+ data_pipe_consumer_handle, MOJO_HANDLE_RIGHT_GET_OPTIONS,
EntrypointClass::DATA_PIPE_CONSUMER, &dispatcher);
if (result != MOJO_RESULT_OK)
return result;
« no previous file with comments | « no previous file | mojo/edk/system/core_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698