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

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

Issue 417113010: Convert ReadData...() to use the new user pointer handling (see r285350). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/data_pipe.cc ('k') | mojo/system/data_pipe_consumer_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_DATA_PIPE_CONSUMER_DISPATCHER_H_ 5 #ifndef MOJO_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_
6 #define MOJO_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_ 6 #define MOJO_SYSTEM_DATA_PIPE_CONSUMER_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 19 matching lines...) Expand all
30 virtual Type GetType() const OVERRIDE; 30 virtual Type GetType() const OVERRIDE;
31 31
32 private: 32 private:
33 virtual ~DataPipeConsumerDispatcher(); 33 virtual ~DataPipeConsumerDispatcher();
34 34
35 // |Dispatcher| protected methods: 35 // |Dispatcher| protected methods:
36 virtual void CancelAllWaitersNoLock() OVERRIDE; 36 virtual void CancelAllWaitersNoLock() OVERRIDE;
37 virtual void CloseImplNoLock() OVERRIDE; 37 virtual void CloseImplNoLock() OVERRIDE;
38 virtual scoped_refptr<Dispatcher> 38 virtual scoped_refptr<Dispatcher>
39 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE; 39 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE;
40 virtual MojoResult ReadDataImplNoLock(void* elements, 40 virtual MojoResult ReadDataImplNoLock(UserPointer<void> elements,
41 uint32_t* num_bytes, 41 UserPointer<uint32_t> num_bytes,
42 MojoReadDataFlags flags) OVERRIDE; 42 MojoReadDataFlags flags) OVERRIDE;
43 virtual MojoResult BeginReadDataImplNoLock( 43 virtual MojoResult BeginReadDataImplNoLock(
44 UserPointer<const void*> buffer, 44 UserPointer<const void*> buffer,
45 UserPointer<uint32_t> buffer_num_bytes, 45 UserPointer<uint32_t> buffer_num_bytes,
46 MojoReadDataFlags flags) OVERRIDE; 46 MojoReadDataFlags flags) OVERRIDE;
47 virtual MojoResult EndReadDataImplNoLock(uint32_t num_bytes_read) OVERRIDE; 47 virtual MojoResult EndReadDataImplNoLock(uint32_t num_bytes_read) OVERRIDE;
48 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter, 48 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter,
49 MojoHandleSignals signals, 49 MojoHandleSignals signals,
50 uint32_t context) OVERRIDE; 50 uint32_t context) OVERRIDE;
51 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE; 51 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE;
52 virtual bool IsBusyNoLock() const OVERRIDE; 52 virtual bool IsBusyNoLock() const OVERRIDE;
53 53
54 // Protected by |lock()|: 54 // Protected by |lock()|:
55 scoped_refptr<DataPipe> data_pipe_; // This will be null if closed. 55 scoped_refptr<DataPipe> data_pipe_; // This will be null if closed.
56 56
57 DISALLOW_COPY_AND_ASSIGN(DataPipeConsumerDispatcher); 57 DISALLOW_COPY_AND_ASSIGN(DataPipeConsumerDispatcher);
58 }; 58 };
59 59
60 } // namespace system 60 } // namespace system
61 } // namespace mojo 61 } // namespace mojo
62 62
63 #endif // MOJO_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_ 63 #endif // MOJO_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/system/data_pipe.cc ('k') | mojo/system/data_pipe_consumer_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698