| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 MOJO_COMMON_PLATFORM_HANDLE_H_ |
| 6 #define MOJO_COMMON_PLATFORM_HANDLE_H_ |
| 7 |
| 8 #include "build/build_config.h" |
| 9 #include "mojo/common/invalid_typemapped_type.h" |
| 10 |
| 11 #if defined(OS_POSIX) |
| 12 #include "base/files/scoped_file.h" |
| 13 #endif |
| 14 |
| 15 #if defined(OS_WIN) |
| 16 #include "base/win/scoped_handle.h" |
| 17 #endif |
| 18 |
| 19 namespace mojo { |
| 20 namespace common { |
| 21 |
| 22 #if defined(OS_POSIX) |
| 23 using ScopedFDForwarder = base::ScopedFD; |
| 24 #else |
| 25 using ScopedFDForwarder = InvalidTypemappedType; |
| 26 #endif |
| 27 |
| 28 #if defined(OS_WIN) |
| 29 using ScopedHandleForwarder = base::win::ScopedHandle; |
| 30 #else |
| 31 using ScopedHandleForwarder = InvalidTypemappedType; |
| 32 #endif |
| 33 |
| 34 } // namespace common |
| 35 } // namespace mojo |
| 36 |
| 37 #endif // MOJO_COMMON_PLATFORM_HANDLE_H_ |
| OLD | NEW |