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

Side by Side Diff: mojo/edk/system/message_pipe_dispatcher.h

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, 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 unified diff | Download patch
« no previous file with comments | « mojo/edk/system/message_pipe.cc ('k') | mojo/edk/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
7 7
8 #include "mojo/edk/system/dispatcher.h" 8 #include "mojo/edk/system/dispatcher.h"
9 #include "mojo/edk/system/memory.h" 9 #include "mojo/edk/system/memory.h"
10 #include "mojo/edk/util/ref_ptr.h" 10 #include "mojo/edk/util/ref_ptr.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 MessagePipe* GetMessagePipeNoLock() const; 73 MessagePipe* GetMessagePipeNoLock() const;
74 // Similarly for the port. 74 // Similarly for the port.
75 unsigned GetPortNoLock() const; 75 unsigned GetPortNoLock() const;
76 76
77 // |Dispatcher| protected methods: 77 // |Dispatcher| protected methods:
78 void CancelAllAwakablesNoLock() override; 78 void CancelAllAwakablesNoLock() override;
79 void CloseImplNoLock() override; 79 void CloseImplNoLock() override;
80 util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock( 80 util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock(
81 MessagePipe* message_pipe, 81 MessagePipe* message_pipe,
82 unsigned port) override; 82 unsigned port) override;
83 MojoResult WriteMessageImplNoLock( 83 MojoResult WriteMessageImplNoLock(UserPointer<const void> bytes,
84 UserPointer<const void> bytes, 84 uint32_t num_bytes,
85 uint32_t num_bytes, 85 std::vector<HandleTransport>* transports,
86 std::vector<DispatcherTransport>* transports, 86 MojoWriteMessageFlags flags) override;
87 MojoWriteMessageFlags flags) override;
88 MojoResult ReadMessageImplNoLock(UserPointer<void> bytes, 87 MojoResult ReadMessageImplNoLock(UserPointer<void> bytes,
89 UserPointer<uint32_t> num_bytes, 88 UserPointer<uint32_t> num_bytes,
90 DispatcherVector* dispatchers, 89 DispatcherVector* dispatchers,
91 uint32_t* num_dispatchers, 90 uint32_t* num_dispatchers,
92 MojoReadMessageFlags flags) override; 91 MojoReadMessageFlags flags) override;
93 HandleSignalsState GetHandleSignalsStateImplNoLock() const override; 92 HandleSignalsState GetHandleSignalsStateImplNoLock() const override;
94 MojoResult AddAwakableImplNoLock(Awakable* awakable, 93 MojoResult AddAwakableImplNoLock(Awakable* awakable,
95 MojoHandleSignals signals, 94 MojoHandleSignals signals,
96 uint32_t context, 95 uint32_t context,
97 HandleSignalsState* signals_state) override; 96 HandleSignalsState* signals_state) override;
(...skipping 14 matching lines...) Expand all
112 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex()); 111 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex());
113 unsigned port_ MOJO_GUARDED_BY(mutex()); 112 unsigned port_ MOJO_GUARDED_BY(mutex());
114 113
115 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); 114 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher);
116 }; 115 };
117 116
118 } // namespace system 117 } // namespace system
119 } // namespace mojo 118 } // namespace mojo
120 119
121 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 120 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/message_pipe.cc ('k') | mojo/edk/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698