Index: mojo/edk/system/handle.h |
diff --git a/mojo/edk/system/handle.h b/mojo/edk/system/handle.h |
index c02fa1d974702bfcc750fbffe76c071a33b33f92..1a01c364efcbb0836d71283999b3e6b54f0e97f7 100644 |
--- a/mojo/edk/system/handle.h |
+++ b/mojo/edk/system/handle.h |
@@ -48,6 +48,10 @@ struct Handle { |
void reset() { *this = Handle(); } |
+ bool has_all_rights(MojoHandleRights required_rights) const { |
+ return (rights & required_rights) == required_rights; |
+ } |
+ |
// Note: |dispatcher| is guaranteed to be null if default-constructed or |
// moved-from, but we make no guarantees about the value of |rights| in either |
// case. |