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_LOCAL_DATA_PIPE_H_ | 5 #ifndef MOJO_SYSTEM_LOCAL_DATA_PIPE_H_ |
6 #define MOJO_SYSTEM_LOCAL_DATA_PIPE_H_ | 6 #define MOJO_SYSTEM_LOCAL_DATA_PIPE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/aligned_memory.h" | 9 #include "base/memory/aligned_memory.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 private: | 28 private: |
29 friend class base::RefCountedThreadSafe<LocalDataPipe>; | 29 friend class base::RefCountedThreadSafe<LocalDataPipe>; |
30 virtual ~LocalDataPipe(); | 30 virtual ~LocalDataPipe(); |
31 | 31 |
32 // |DataPipe| implementation: | 32 // |DataPipe| implementation: |
33 virtual void ProducerCloseImplNoLock() OVERRIDE; | 33 virtual void ProducerCloseImplNoLock() OVERRIDE; |
34 virtual MojoResult ProducerWriteDataImplNoLock(const void* elements, | 34 virtual MojoResult ProducerWriteDataImplNoLock(const void* elements, |
35 uint32_t* num_bytes, | 35 uint32_t* num_bytes, |
36 bool all_or_none) OVERRIDE; | 36 bool all_or_none) OVERRIDE; |
37 virtual MojoResult ProducerBeginWriteDataImplNoLock( | 37 virtual MojoResult ProducerBeginWriteDataImplNoLock( |
38 void** buffer, | 38 UserPointer<void*> buffer, |
39 uint32_t* buffer_num_bytes, | 39 UserPointer<uint32_t> buffer_num_bytes, |
40 bool all_or_none) OVERRIDE; | 40 uint32_t min_num_bytes_to_write) OVERRIDE; |
41 virtual MojoResult ProducerEndWriteDataImplNoLock( | 41 virtual MojoResult ProducerEndWriteDataImplNoLock( |
42 uint32_t num_bytes_written) OVERRIDE; | 42 uint32_t num_bytes_written) OVERRIDE; |
43 virtual HandleSignalsState | 43 virtual HandleSignalsState |
44 ProducerGetHandleSignalsStateNoLock() const OVERRIDE; | 44 ProducerGetHandleSignalsStateNoLock() const OVERRIDE; |
45 virtual void ConsumerCloseImplNoLock() OVERRIDE; | 45 virtual void ConsumerCloseImplNoLock() OVERRIDE; |
46 virtual MojoResult ConsumerReadDataImplNoLock(void* elements, | 46 virtual MojoResult ConsumerReadDataImplNoLock(void* elements, |
47 uint32_t* num_bytes, | 47 uint32_t* num_bytes, |
48 bool all_or_none) OVERRIDE; | 48 bool all_or_none) OVERRIDE; |
49 virtual MojoResult ConsumerDiscardDataImplNoLock(uint32_t* num_bytes, | 49 virtual MojoResult ConsumerDiscardDataImplNoLock(uint32_t* num_bytes, |
50 bool all_or_none) OVERRIDE; | 50 bool all_or_none) OVERRIDE; |
(...skipping 24 matching lines...) Expand all Loading... |
75 size_t start_index_; | 75 size_t start_index_; |
76 size_t current_num_bytes_; | 76 size_t current_num_bytes_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(LocalDataPipe); | 78 DISALLOW_COPY_AND_ASSIGN(LocalDataPipe); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace system | 81 } // namespace system |
82 } // namespace mojo | 82 } // namespace mojo |
83 | 83 |
84 #endif // MOJO_SYSTEM_LOCAL_DATA_PIPE_H_ | 84 #endif // MOJO_SYSTEM_LOCAL_DATA_PIPE_H_ |
OLD | NEW |