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

Unified Diff: mojo/edk/system/handle.h

Issue 1957713003: EDK: Remove Core::GetDispatcher(). (Closed) Base URL: https://github.com/domokit/mojo.git@work789_edk_handle_table_14-x-work788_edk_handle_13.9-x-work787_edk_handle_13.8
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
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.

Powered by Google App Engine
This is Rietveld 408576698