OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef DEVICE_DEVICE_SENSORS_TYPE_CONVERTERS_H_ |
| 6 #define DEVICE_DEVICE_SENSORS_TYPE_CONVERTERS_H_ |
| 7 |
| 8 #include "base/memory/shared_memory.h" |
| 9 #include "device/device_sensors/device_sensors.mojom.h" |
| 10 |
| 11 namespace mojo { |
| 12 |
| 13 template <> |
| 14 struct TypeConverter<base::SharedMemoryHandle, device::SharedMemoryPtr> { |
| 15 static base::SharedMemoryHandle Convert( |
| 16 const device::SharedMemoryPtr& mojo_mem_ptr); |
| 17 }; |
| 18 |
| 19 template <> |
| 20 struct TypeConverter<device::SharedMemoryPtr, base::SharedMemoryHandle> { |
| 21 static device::SharedMemoryPtr Convert( |
| 22 const base::SharedMemoryHandle& handle); |
| 23 }; |
| 24 |
| 25 } // namespace mojo |
| 26 |
| 27 #endif // DEVICE_DEVICE_SENSORS_TYPE_CONVERTERS_H_ |
OLD | NEW |