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

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

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/platform_handle.h ('k') | mojo/common/platform_handle.typemap » ('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 module mojo.common.mojom;
6
7 [Native]
8 // Corresponds to |base::ScopedFD| in base/files/scoped_file.h
9 struct FileDescriptor {
10 handle wrapped_handle;
11 };
12
13 // Corresponds to |base::win::ScopedHandle| in base/win/scoped_handle.h
14 struct WindowsHandle {
15 handle wrapped_handle;
16 };
17
18 union PlatformHandle {
19 FileDescriptor fd;
20 WindowsHandle windows_handle;
21 };
OLDNEW
« no previous file with comments | « mojo/common/platform_handle.h ('k') | mojo/common/platform_handle.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698