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

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

Issue 1946763002: EDK: Add MojoHandleRights to DispatcherTransport. (Closed) Base URL: https://github.com/domokit/mojo.git@work788_edk_handle_10
Patch Set: Created 4 years, 8 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/data_pipe_impl_unittest.cc ('k') | mojo/edk/system/dispatcher.cc » ('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 1078bdd4c6b9399a88f0e6906d0fd9264d07e089..46ed2a35a6dfe41a310b9fa3b3a2738ea59f3fe9 100644
--- a/mojo/edk/system/dispatcher.h
+++ b/mojo/edk/system/dispatcher.h
@@ -40,6 +40,7 @@ class Channel;
class Core;
class Dispatcher;
class DispatcherTransport;
+struct Handle;
class HandleTable;
class LocalMessagePipeEndpoint;
class MessagePipe;
@@ -51,7 +52,7 @@ using DispatcherVector = std::vector<util::RefPtr<Dispatcher>>;
namespace test {
// Test helper. We need to declare it here so we can friend it.
-DispatcherTransport DispatcherTryStartTransport(Dispatcher* dispatcher);
+DispatcherTransport HandleTryStartTransport(const Handle& handle);
} // namespace test
@@ -202,12 +203,12 @@ class Dispatcher : public util::RefCountedThreadSafe<Dispatcher> {
friend class Core;
friend class HandleTable;
// Tests also need this, to avoid needing |Core|.
- friend DispatcherTransport test::DispatcherTryStartTransport(Dispatcher*);
+ friend DispatcherTransport test::HandleTryStartTransport(const Handle&);
// This must be called under the handle table lock and only if the handle
// table entry is not marked busy. The caller must maintain a reference to
// |dispatcher| until |DispatcherTransport::End()| is called.
- static DispatcherTransport TryStartTransport(Dispatcher* dispatcher);
+ static DispatcherTransport TryStartTransport(const Handle& handle);
};
// A |TransportData| may serialize dispatchers that are given to it (and which
« no previous file with comments | « mojo/edk/system/data_pipe_impl_unittest.cc ('k') | mojo/edk/system/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698