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_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ | 5 #ifndef MOJO_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ |
6 #define MOJO_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ | 6 #define MOJO_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "mojo/system/raw_shared_buffer.h" | 9 #include "mojo/system/raw_shared_buffer.h" |
10 #include "mojo/system/simple_dispatcher.h" | 10 #include "mojo/system/simple_dispatcher.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual void CloseImplNoLock() OVERRIDE; | 44 virtual void CloseImplNoLock() OVERRIDE; |
45 virtual scoped_refptr<Dispatcher> | 45 virtual scoped_refptr<Dispatcher> |
46 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE; | 46 CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE; |
47 virtual MojoResult DuplicateBufferHandleImplNoLock( | 47 virtual MojoResult DuplicateBufferHandleImplNoLock( |
48 const MojoDuplicateBufferHandleOptions* options, | 48 const MojoDuplicateBufferHandleOptions* options, |
49 scoped_refptr<Dispatcher>* new_dispatcher) OVERRIDE; | 49 scoped_refptr<Dispatcher>* new_dispatcher) OVERRIDE; |
50 virtual MojoResult MapBufferImplNoLock( | 50 virtual MojoResult MapBufferImplNoLock( |
51 uint64_t offset, | 51 uint64_t offset, |
52 uint64_t num_bytes, | 52 uint64_t num_bytes, |
53 MojoMapBufferFlags flags, | 53 MojoMapBufferFlags flags, |
54 scoped_ptr<RawSharedBuffer::Mapping>* mapping) OVERRIDE; | 54 scoped_ptr<RawSharedBufferMapping>* mapping) OVERRIDE; |
55 | 55 |
56 // |SimpleDispatcher| methods: | 56 // |SimpleDispatcher| methods: |
57 virtual MojoWaitFlags SatisfiedFlagsNoLock() const OVERRIDE; | 57 virtual MojoWaitFlags SatisfiedFlagsNoLock() const OVERRIDE; |
58 virtual MojoWaitFlags SatisfiableFlagsNoLock() const OVERRIDE; | 58 virtual MojoWaitFlags SatisfiableFlagsNoLock() const OVERRIDE; |
59 | 59 |
60 scoped_refptr<RawSharedBuffer> shared_buffer_; | 60 scoped_refptr<RawSharedBuffer> shared_buffer_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(SharedBufferDispatcher); | 62 DISALLOW_COPY_AND_ASSIGN(SharedBufferDispatcher); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace system | 65 } // namespace system |
66 } // namespace mojo | 66 } // namespace mojo |
67 | 67 |
68 #endif // MOJO_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ | 68 #endif // MOJO_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ |
OLD | NEW |