Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: mojo/common/platform_handle.h

Issue 2561003002: Add mojo structs for ScopedFD and ScopedHandle. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/common/invalid_typemapped_type.h ('k') | mojo/common/platform_handle.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « mojo/common/invalid_typemapped_type.h ('k') | mojo/common/platform_handle.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698