| 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_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 27 matching lines...) Expand all Loading... |
| 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(void* elements, |
| 41 uint32_t* num_bytes, | 41 uint32_t* num_bytes, |
| 42 MojoReadDataFlags flags) OVERRIDE; | 42 MojoReadDataFlags flags) OVERRIDE; |
| 43 virtual MojoResult BeginReadDataImplNoLock(const void** buffer, | 43 virtual MojoResult BeginReadDataImplNoLock(const void** buffer, |
| 44 uint32_t* buffer_num_bytes, | 44 uint32_t* buffer_num_bytes, |
| 45 MojoReadDataFlags flags) OVERRIDE; | 45 MojoReadDataFlags flags) OVERRIDE; |
| 46 virtual MojoResult EndReadDataImplNoLock(uint32_t num_bytes_read) OVERRIDE; | 46 virtual MojoResult EndReadDataImplNoLock(uint32_t num_bytes_read) OVERRIDE; |
| 47 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter, | 47 virtual MojoResult AddWaiterImplNoLock(Waiter* waiter, |
| 48 MojoWaitFlags flags, | 48 MojoHandleSignals signals, |
| 49 uint32_t context) OVERRIDE; | 49 uint32_t context) OVERRIDE; |
| 50 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE; | 50 virtual void RemoveWaiterImplNoLock(Waiter* waiter) OVERRIDE; |
| 51 virtual bool IsBusyNoLock() const OVERRIDE; | 51 virtual bool IsBusyNoLock() const OVERRIDE; |
| 52 | 52 |
| 53 // Protected by |lock()|: | 53 // Protected by |lock()|: |
| 54 scoped_refptr<DataPipe> data_pipe_; // This will be null if closed. | 54 scoped_refptr<DataPipe> data_pipe_; // This will be null if closed. |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(DataPipeConsumerDispatcher); | 56 DISALLOW_COPY_AND_ASSIGN(DataPipeConsumerDispatcher); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace system | 59 } // namespace system |
| 60 } // namespace mojo | 60 } // namespace mojo |
| 61 | 61 |
| 62 #endif // MOJO_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_ | 62 #endif // MOJO_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_ |
| OLD | NEW |