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

Unified Diff: mojo/public/c/system/handle.h

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 | « mojo/public/c/system/data_pipe.h ('k') | mojo/public/c/system/message_pipe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/handle.h
diff --git a/mojo/public/c/system/handle.h b/mojo/public/c/system/handle.h
index dbedd4a6f9f6204da149777549bb202011861e04..096a2482f418df3646631e67ed64fbca4c0ee2fd 100644
--- a/mojo/public/c/system/handle.h
+++ b/mojo/public/c/system/handle.h
@@ -33,8 +33,8 @@ typedef uint32_t MojoHandle;
// message).
// |MOJO_HANDLE_RIGHT_WRITE| - Right to "write" to the handle (e.g., write a
// message).
-// |MOJO_HANDLE_RIGHT_EXECUTE| - Right to "execute" using the handle (e.g.,
-// map a buffer as executable code).
+// |MOJO_HANDLE_RIGHT_GET_OPTIONS| - Right to get a handle's options.
+// |MOJO_HANDLE_RIGHT_SET_OPTIONS| - Right to set a handle's options.
//
// TODO(vtl): Add rights support/checking to existing handle types.
@@ -45,7 +45,8 @@ typedef uint32_t MojoHandleRights;
#define MOJO_HANDLE_RIGHT_TRANSFER ((MojoHandleRights)1 << 1)
#define MOJO_HANDLE_RIGHT_READ ((MojoHandleRights)1 << 2)
#define MOJO_HANDLE_RIGHT_WRITE ((MojoHandleRights)1 << 3)
-#define MOJO_HANDLE_RIGHT_EXECUTE ((MojoHandleRights)1 << 4)
+#define MOJO_HANDLE_RIGHT_GET_OPTIONS ((MojoHandleRights)1 << 4)
+#define MOJO_HANDLE_RIGHT_SET_OPTIONS ((MojoHandleRights)1 << 5)
// |MojoHandleSignals|: Used to specify signals that can be waited on for a
// handle (and which can be triggered), e.g., the ability to read or write to
« no previous file with comments | « mojo/public/c/system/data_pipe.h ('k') | mojo/public/c/system/message_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698