Index: mojo/edk/system/shared_buffer_dispatcher.h |
diff --git a/mojo/edk/system/shared_buffer_dispatcher.h b/mojo/edk/system/shared_buffer_dispatcher.h |
index 0286520b964231f98bd8ef5205df0f2dc10f6d5d..0dd2fc0f0d5894d4eb0c370975730812486e1569 100644 |
--- a/mojo/edk/system/shared_buffer_dispatcher.h |
+++ b/mojo/edk/system/shared_buffer_dispatcher.h |
@@ -11,6 +11,7 @@ |
#include "mojo/edk/system/simple_dispatcher.h" |
#include "mojo/edk/util/ref_ptr.h" |
#include "mojo/edk/util/thread_annotations.h" |
+#include "mojo/public/c/system/handle.h" |
#include "mojo/public/cpp/system/macros.h" |
namespace mojo { |
@@ -31,6 +32,13 @@ namespace system { |
// (which would entail overriding |GetHandleSignalsStateImplNoLock()|, etc.). |
class SharedBufferDispatcher final : public SimpleDispatcher { |
public: |
+ // The default/standard rights for a shared buffer handle. Note that they're |
+ // duplicable by default. |
+ static constexpr MojoHandleRights kDefaultHandleRights = |
+ MOJO_HANDLE_RIGHT_DUPLICATE | MOJO_HANDLE_RIGHT_TRANSFER | |
+ MOJO_HANDLE_RIGHT_READ | MOJO_HANDLE_RIGHT_WRITE | |
+ MOJO_HANDLE_RIGHT_EXECUTE; |
+ |
// The default options to use for |MojoCreateSharedBuffer()|. (Real uses |
// should obtain this via |ValidateCreateOptions()| with a null |in_options|; |
// this is exposed directly for testing convenience.) |