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

Unified Diff: mojo/edk/system/message_pipe.cc

Issue 1947733002: EDK: Rename DispatcherTransport to HandleTransport. (Closed) Base URL: https://github.com/domokit/mojo.git@work790_edk_handle_11-x-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/message_pipe.h ('k') | mojo/edk/system/message_pipe_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/message_pipe.cc
diff --git a/mojo/edk/system/message_pipe.cc b/mojo/edk/system/message_pipe.cc
index 4303f3f6c304ded504d02c75cd9d2c587d66cb09..82b8fd3650be7592d1a5cfa62bcdba30911585c0 100644
--- a/mojo/edk/system/message_pipe.cc
+++ b/mojo/edk/system/message_pipe.cc
@@ -149,12 +149,11 @@ void MessagePipe::Close(unsigned port) {
}
// TODO(vtl): Handle flags.
-MojoResult MessagePipe::WriteMessage(
- unsigned port,
- UserPointer<const void> bytes,
- uint32_t num_bytes,
- std::vector<DispatcherTransport>* transports,
- MojoWriteMessageFlags flags) {
+MojoResult MessagePipe::WriteMessage(unsigned port,
+ UserPointer<const void> bytes,
+ uint32_t num_bytes,
+ std::vector<HandleTransport>* transports,
+ MojoWriteMessageFlags flags) {
DCHECK(port == 0 || port == 1);
MutexLocker locker(&mutex_);
@@ -331,7 +330,7 @@ MessagePipe::~MessagePipe() {
MojoResult MessagePipe::EnqueueMessageNoLock(
unsigned port,
std::unique_ptr<MessageInTransit> message,
- std::vector<DispatcherTransport>* transports) {
+ std::vector<HandleTransport>* transports) {
DCHECK(port == 0 || port == 1);
DCHECK(message);
@@ -356,7 +355,7 @@ MojoResult MessagePipe::EnqueueMessageNoLock(
MojoResult MessagePipe::AttachTransportsNoLock(
unsigned port,
MessageInTransit* message,
- std::vector<DispatcherTransport>* transports) {
+ std::vector<HandleTransport>* transports) {
DCHECK(!message->has_dispatchers());
// Clone the dispatchers and attach them to the message. (This must be done as
« no previous file with comments | « mojo/edk/system/message_pipe.h ('k') | mojo/edk/system/message_pipe_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698