OLD | NEW |
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_PRODUCER_DISPATCHER_H_ | 5 #ifndef MOJO_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ |
6 #define MOJO_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ | 6 #define MOJO_SYSTEM_DATA_PIPE_PRODUCER_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 29 matching lines...) Expand all Loading... |
40 virtual MojoResult WriteDataImplNoLock(const void* elements, | 40 virtual MojoResult WriteDataImplNoLock(const void* elements, |
41 uint32_t* num_bytes, | 41 uint32_t* num_bytes, |
42 MojoWriteDataFlags flags) OVERRIDE; | 42 MojoWriteDataFlags flags) OVERRIDE; |
43 virtual MojoResult BeginWriteDataImplNoLock( | 43 virtual MojoResult BeginWriteDataImplNoLock( |
44 void** buffer, | 44 void** buffer, |
45 uint32_t* buffer_num_bytes, | 45 uint32_t* buffer_num_bytes, |
46 MojoWriteDataFlags flags) OVERRIDE; | 46 MojoWriteDataFlags flags) OVERRIDE; |
47 virtual MojoResult EndWriteDataImplNoLock( | 47 virtual MojoResult EndWriteDataImplNoLock( |
48 uint32_t num_bytes_written) OVERRIDE; | 48 uint32_t num_bytes_written) OVERRIDE; |
49 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter, | 49 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter, |
50 MojoWaitFlags flags, | 50 MojoHandleSignals signals, |
51 uint32_t context) OVERRIDE; | 51 uint32_t context) OVERRIDE; |
52 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE; | 52 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE; |
53 virtual bool IsBusyNoLock() const OVERRIDE; | 53 virtual bool IsBusyNoLock() const OVERRIDE; |
54 | 54 |
55 // Protected by |lock()|: | 55 // Protected by |lock()|: |
56 scoped_refptr<DataPipe> data_pipe_; // This will be null if closed. | 56 scoped_refptr<DataPipe> data_pipe_; // This will be null if closed. |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(DataPipeProducerDispatcher); | 58 DISALLOW_COPY_AND_ASSIGN(DataPipeProducerDispatcher); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace system | 61 } // namespace system |
62 } // namespace mojo | 62 } // namespace mojo |
63 | 63 |
64 #endif // MOJO_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ | 64 #endif // MOJO_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ |
OLD | NEW |