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

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

Issue 103533008: Mojo: More data pipe implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indentation Created 7 years 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 27 matching lines...) Expand all
38 MojoWriteMessageFlags flags) OVERRIDE; 38 MojoWriteMessageFlags flags) OVERRIDE;
39 virtual MojoResult ReadMessageImplNoLock( 39 virtual MojoResult ReadMessageImplNoLock(
40 void* bytes, uint32_t* num_bytes, 40 void* bytes, uint32_t* num_bytes,
41 std::vector<scoped_refptr<Dispatcher> >* dispatchers, 41 std::vector<scoped_refptr<Dispatcher> >* dispatchers,
42 uint32_t* num_dispatchers, 42 uint32_t* num_dispatchers,
43 MojoReadMessageFlags flags) OVERRIDE; 43 MojoReadMessageFlags flags) OVERRIDE;
44 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter, 44 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter,
45 MojoWaitFlags flags, 45 MojoWaitFlags flags,
46 MojoResult wake_result) OVERRIDE; 46 MojoResult wake_result) OVERRIDE;
47 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE; 47 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE;
48
49 virtual scoped_refptr<Dispatcher> 48 virtual scoped_refptr<Dispatcher>
50 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE; 49 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE;
51 50
52 // Protected by |lock()|: 51 // Protected by |lock()|:
53 scoped_refptr<MessagePipe> message_pipe_; // This will be null if closed. 52 scoped_refptr<MessagePipe> message_pipe_; // This will be null if closed.
54 unsigned port_; 53 unsigned port_;
55 54
56 DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); 55 DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher);
57 }; 56 };
58 57
59 } // namespace system 58 } // namespace system
60 } // namespace mojo 59 } // namespace mojo
61 60
62 #endif // MOJO_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 61 #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