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

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

Issue 417303002: Convert ReadMessage...() to use the new user pointer handling (see r285350). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hmm Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « mojo/system/message_pipe.cc ('k') | mojo/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_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 5 #ifndef MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
6 #define MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 6 #define MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // |Dispatcher| protected methods: 76 // |Dispatcher| protected methods:
77 virtual void CancelAllWaitersNoLock() OVERRIDE; 77 virtual void CancelAllWaitersNoLock() OVERRIDE;
78 virtual void CloseImplNoLock() OVERRIDE; 78 virtual void CloseImplNoLock() OVERRIDE;
79 virtual scoped_refptr<Dispatcher> 79 virtual scoped_refptr<Dispatcher>
80 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE; 80 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE;
81 virtual MojoResult WriteMessageImplNoLock( 81 virtual MojoResult WriteMessageImplNoLock(
82 const void* bytes, 82 const void* bytes,
83 uint32_t num_bytes, 83 uint32_t num_bytes,
84 std::vector<DispatcherTransport>* transports, 84 std::vector<DispatcherTransport>* transports,
85 MojoWriteMessageFlags flags) OVERRIDE; 85 MojoWriteMessageFlags flags) OVERRIDE;
86 virtual MojoResult ReadMessageImplNoLock(void* bytes, 86 virtual MojoResult ReadMessageImplNoLock(UserPointer<void> bytes,
87 uint32_t* num_bytes, 87 UserPointer<uint32_t> num_bytes,
88 DispatcherVector* dispatchers, 88 DispatcherVector* dispatchers,
89 uint32_t* num_dispatchers, 89 uint32_t* num_dispatchers,
90 MojoReadMessageFlags flags) OVERRIDE; 90 MojoReadMessageFlags flags) OVERRIDE;
91 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter, 91 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter,
92 MojoHandleSignals signals, 92 MojoHandleSignals signals,
93 uint32_t context) OVERRIDE; 93 uint32_t context) OVERRIDE;
94 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE; 94 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE;
95 virtual void StartSerializeImplNoLock(Channel* channel, 95 virtual void StartSerializeImplNoLock(Channel* channel,
96 size_t* max_size, 96 size_t* max_size,
97 size_t* max_platform_handles) OVERRIDE; 97 size_t* max_platform_handles) OVERRIDE;
(...skipping 24 matching lines...) Expand all
122 return static_cast<MessagePipeDispatcher*>(dispatcher()); 122 return static_cast<MessagePipeDispatcher*>(dispatcher());
123 } 123 }
124 124
125 // Copy and assign allowed. 125 // Copy and assign allowed.
126 }; 126 };
127 127
128 } // namespace system 128 } // namespace system
129 } // namespace mojo 129 } // namespace mojo
130 130
131 #endif // MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 131 #endif // MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/system/message_pipe.cc ('k') | mojo/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698