| 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_EDK_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ | 5 #ifndef MOJO_EDK_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ |
| 6 #define MOJO_EDK_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ | 6 #define MOJO_EDK_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include "mojo/edk/system/dispatcher.h" | 8 #include "mojo/edk/system/dispatcher.h" |
| 9 #include "mojo/edk/util/ref_ptr.h" | 9 #include "mojo/edk/util/ref_ptr.h" |
| 10 #include "mojo/edk/util/thread_annotations.h" | 10 #include "mojo/edk/util/thread_annotations.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 MojoResult WriteDataImplNoLock(UserPointer<const void> elements, | 62 MojoResult WriteDataImplNoLock(UserPointer<const void> elements, |
| 63 UserPointer<uint32_t> num_bytes, | 63 UserPointer<uint32_t> num_bytes, |
| 64 MojoWriteDataFlags flags) override; | 64 MojoWriteDataFlags flags) override; |
| 65 MojoResult BeginWriteDataImplNoLock(UserPointer<void*> buffer, | 65 MojoResult BeginWriteDataImplNoLock(UserPointer<void*> buffer, |
| 66 UserPointer<uint32_t> buffer_num_bytes, | 66 UserPointer<uint32_t> buffer_num_bytes, |
| 67 MojoWriteDataFlags flags) override; | 67 MojoWriteDataFlags flags) override; |
| 68 MojoResult EndWriteDataImplNoLock(uint32_t num_bytes_written) override; | 68 MojoResult EndWriteDataImplNoLock(uint32_t num_bytes_written) override; |
| 69 HandleSignalsState GetHandleSignalsStateImplNoLock() const override; | 69 HandleSignalsState GetHandleSignalsStateImplNoLock() const override; |
| 70 MojoResult AddAwakableImplNoLock(Awakable* awakable, | 70 MojoResult AddAwakableImplNoLock(Awakable* awakable, |
| 71 uint64_t context, | 71 uint64_t context, |
| 72 bool force, | 72 bool persistent, |
| 73 MojoHandleSignals signals, | 73 MojoHandleSignals signals, |
| 74 HandleSignalsState* signals_state) override; | 74 HandleSignalsState* signals_state) override; |
| 75 void RemoveAwakableImplNoLock(bool match_context, | 75 void RemoveAwakableImplNoLock(bool match_context, |
| 76 Awakable* awakable, | 76 Awakable* awakable, |
| 77 uint64_t context, | 77 uint64_t context, |
| 78 HandleSignalsState* signals_state) override; | 78 HandleSignalsState* signals_state) override; |
| 79 void StartSerializeImplNoLock(Channel* channel, | 79 void StartSerializeImplNoLock(Channel* channel, |
| 80 size_t* max_size, | 80 size_t* max_size, |
| 81 size_t* max_platform_handles) override | 81 size_t* max_platform_handles) override |
| 82 MOJO_NOT_THREAD_SAFE; | 82 MOJO_NOT_THREAD_SAFE; |
| 83 bool EndSerializeAndCloseImplNoLock( | 83 bool EndSerializeAndCloseImplNoLock( |
| 84 Channel* channel, | 84 Channel* channel, |
| 85 void* destination, | 85 void* destination, |
| 86 size_t* actual_size, | 86 size_t* actual_size, |
| 87 std::vector<platform::ScopedPlatformHandle>* platform_handles) override | 87 std::vector<platform::ScopedPlatformHandle>* platform_handles) override |
| 88 MOJO_NOT_THREAD_SAFE; | 88 MOJO_NOT_THREAD_SAFE; |
| 89 | 89 |
| 90 // This will be null if closed. | 90 // This will be null if closed. |
| 91 util::RefPtr<DataPipe> data_pipe_ MOJO_GUARDED_BY(mutex()); | 91 util::RefPtr<DataPipe> data_pipe_ MOJO_GUARDED_BY(mutex()); |
| 92 | 92 |
| 93 MOJO_DISALLOW_COPY_AND_ASSIGN(DataPipeProducerDispatcher); | 93 MOJO_DISALLOW_COPY_AND_ASSIGN(DataPipeProducerDispatcher); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace system | 96 } // namespace system |
| 97 } // namespace mojo | 97 } // namespace mojo |
| 98 | 98 |
| 99 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ | 99 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ |
| OLD | NEW |