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

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

Issue 2052553002: Add Core::ReplaceHandleWithReducedRights(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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/edk/system/core_unittest.cc ('k') | mojo/edk/system/handle_table.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/dispatcher.h
diff --git a/mojo/edk/system/dispatcher.h b/mojo/edk/system/dispatcher.h
index 30e2d5d8934e37a01d41a92e4634285042eaaf41..231e77063608ea66298ff5693238f8f6793fa268 100644
--- a/mojo/edk/system/dispatcher.h
+++ b/mojo/edk/system/dispatcher.h
@@ -281,6 +281,11 @@ class Dispatcher : public util::RefCountedThreadSafe<Dispatcher> {
// |CancelAllStateNoLock()| (or equivalent); unlike |CloseNoLock()|,
// |CreateEquivalentDispatcherAndCloseNoLock()| does not do this
// automatically.
+ //
+ // If the new dispatcher will be enqueued on a message pipe, then
+ // |message_pipe|/|port| will be provided (since there may be some
+ // special-casing necessary due to locking considerations); otherwise,
+ // |message_pipe| will be null (and |port| will be meaningless).
virtual util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock(
MessagePipe* message_pipe,
unsigned port) MOJO_EXCLUSIVE_LOCKS_REQUIRED(mutex_) = 0;
« no previous file with comments | « mojo/edk/system/core_unittest.cc ('k') | mojo/edk/system/handle_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698