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/simple_dispatcher.h" | 9 #include "mojo/edk/system/simple_dispatcher.h" |
10 #include "mojo/edk/system/system_impl_export.h" | 10 #include "mojo/edk/system/system_impl_export.h" |
11 #include "mojo/public/cpp/system/macros.h" | 11 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 | 14 |
15 namespace edk { | 15 namespace edk { |
16 class PlatformSupport; | 16 class PlatformSupport; |
17 | 17 |
18 // TODO(vtl): We derive from SimpleDispatcher, even though we don't currently | 18 // TODO(vtl): We derive from SimpleDispatcher, even though we don't currently |
19 // have anything that's waitable. I want to add a "transferrable" wait flag | 19 // have anything that's waitable. I want to add a "transferrable" wait flag |
20 // (which would entail overriding |GetHandleSignalsStateImplNoLock()|, etc.). | 20 // (which would entail overriding |GetHandleSignalsStateImplNoLock()|, etc.). |
21 class MOJO_SYSTEM_IMPL_EXPORT SharedBufferDispatcher final | 21 class MOJO_SYSTEM_IMPL_EXPORT SharedBufferDispatcher final |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 scoped_refptr<PlatformSharedBuffer> shared_buffer_; | 96 scoped_refptr<PlatformSharedBuffer> shared_buffer_; |
97 | 97 |
98 MOJO_DISALLOW_COPY_AND_ASSIGN(SharedBufferDispatcher); | 98 MOJO_DISALLOW_COPY_AND_ASSIGN(SharedBufferDispatcher); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace edk | 101 } // namespace edk |
102 } // namespace mojo | 102 } // namespace mojo |
103 | 103 |
104 #endif // MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ | 104 #endif // MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ |
OLD | NEW |