| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SHARED_BUFFER_DISPATCHER_H_ | 5 #ifndef MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ |
| 6 #define MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ | 6 #define MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include "mojo/edk/embedder/platform_shared_buffer.h" | 8 #include "mojo/edk/embedder/platform_shared_buffer.h" |
| 9 #include "mojo/edk/system/memory.h" | 9 #include "mojo/edk/system/memory.h" |
| 10 #include "mojo/edk/system/simple_dispatcher.h" | 10 #include "mojo/edk/system/simple_dispatcher.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 MojoResult DuplicateBufferHandleImplNoLock( | 86 MojoResult DuplicateBufferHandleImplNoLock( |
| 87 UserPointer<const MojoDuplicateBufferHandleOptions> options, | 87 UserPointer<const MojoDuplicateBufferHandleOptions> options, |
| 88 scoped_refptr<Dispatcher>* new_dispatcher) override; | 88 scoped_refptr<Dispatcher>* new_dispatcher) override; |
| 89 MojoResult MapBufferImplNoLock( | 89 MojoResult MapBufferImplNoLock( |
| 90 uint64_t offset, | 90 uint64_t offset, |
| 91 uint64_t num_bytes, | 91 uint64_t num_bytes, |
| 92 MojoMapBufferFlags flags, | 92 MojoMapBufferFlags flags, |
| 93 scoped_ptr<embedder::PlatformSharedBufferMapping>* mapping) override; | 93 scoped_ptr<embedder::PlatformSharedBufferMapping>* mapping) override; |
| 94 void StartSerializeImplNoLock(Channel* channel, | 94 void StartSerializeImplNoLock(Channel* channel, |
| 95 size_t* max_size, | 95 size_t* max_size, |
| 96 size_t* max_platform_handles) override | 96 size_t* max_platform_handles) override; |
| 97 MOJO_NOT_THREAD_SAFE; | |
| 98 bool EndSerializeAndCloseImplNoLock( | 97 bool EndSerializeAndCloseImplNoLock( |
| 99 Channel* channel, | 98 Channel* channel, |
| 100 void* destination, | 99 void* destination, |
| 101 size_t* actual_size, | 100 size_t* actual_size, |
| 102 embedder::PlatformHandleVector* platform_handles) override | 101 embedder::PlatformHandleVector* platform_handles) override; |
| 103 MOJO_NOT_THREAD_SAFE; | |
| 104 | 102 |
| 105 scoped_refptr<embedder::PlatformSharedBuffer> shared_buffer_ | 103 scoped_refptr<embedder::PlatformSharedBuffer> shared_buffer_; |
| 106 MOJO_GUARDED_BY(mutex()); | |
| 107 | 104 |
| 108 MOJO_DISALLOW_COPY_AND_ASSIGN(SharedBufferDispatcher); | 105 MOJO_DISALLOW_COPY_AND_ASSIGN(SharedBufferDispatcher); |
| 109 }; | 106 }; |
| 110 | 107 |
| 111 } // namespace system | 108 } // namespace system |
| 112 } // namespace mojo | 109 } // namespace mojo |
| 113 | 110 |
| 114 #endif // MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ | 111 #endif // MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ |
| OLD | NEW |