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

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

Issue 262093003: Mojo: Add/use |typedef std::vector<scoped_refptr<Dispatcher> > DispatcherVector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // |Dispatcher| protected methods: 59 // |Dispatcher| protected methods:
60 virtual void CancelAllWaitersNoLock() OVERRIDE; 60 virtual void CancelAllWaitersNoLock() OVERRIDE;
61 virtual void CloseImplNoLock() OVERRIDE; 61 virtual void CloseImplNoLock() OVERRIDE;
62 virtual scoped_refptr<Dispatcher> 62 virtual scoped_refptr<Dispatcher>
63 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE; 63 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE;
64 virtual MojoResult WriteMessageImplNoLock( 64 virtual MojoResult WriteMessageImplNoLock(
65 const void* bytes, 65 const void* bytes,
66 uint32_t num_bytes, 66 uint32_t num_bytes,
67 std::vector<DispatcherTransport>* transports, 67 std::vector<DispatcherTransport>* transports,
68 MojoWriteMessageFlags flags) OVERRIDE; 68 MojoWriteMessageFlags flags) OVERRIDE;
69 virtual MojoResult ReadMessageImplNoLock( 69 virtual MojoResult ReadMessageImplNoLock(void* bytes,
70 void* bytes, 70 uint32_t* num_bytes,
71 uint32_t* num_bytes, 71 DispatcherVector* dispatchers,
72 std::vector<scoped_refptr<Dispatcher> >* dispatchers, 72 uint32_t* num_dispatchers,
73 uint32_t* num_dispatchers, 73 MojoReadMessageFlags flags) OVERRIDE;
74 MojoReadMessageFlags flags) OVERRIDE;
75 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter, 74 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter,
76 MojoWaitFlags flags, 75 MojoWaitFlags flags,
77 MojoResult wake_result) OVERRIDE; 76 MojoResult wake_result) OVERRIDE;
78 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE; 77 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE;
79 virtual void StartSerializeImplNoLock(Channel* channel, 78 virtual void StartSerializeImplNoLock(Channel* channel,
80 size_t* max_size, 79 size_t* max_size,
81 size_t* max_platform_handles) OVERRIDE; 80 size_t* max_platform_handles) OVERRIDE;
82 virtual bool EndSerializeAndCloseImplNoLock( 81 virtual bool EndSerializeAndCloseImplNoLock(
83 Channel* channel, 82 Channel* channel,
84 void* destination, 83 void* destination,
(...skipping 21 matching lines...) Expand all
106 return static_cast<MessagePipeDispatcher*>(dispatcher()); 105 return static_cast<MessagePipeDispatcher*>(dispatcher());
107 } 106 }
108 107
109 // Copy and assign allowed. 108 // Copy and assign allowed.
110 }; 109 };
111 110
112 } // namespace system 111 } // namespace system
113 } // namespace mojo 112 } // namespace mojo
114 113
115 #endif // MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 114 #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