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

Side by Side Diff: chrome/common/nacl_types.h

Issue 153002: NaCl-Chrome integration - step 1 (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 2 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/nacl_messages_internal.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 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 // Handle passing definitions for NaCl
6 #ifndef CHROME_COMMON_NACL_TYPES_H_
7 #define CHROME_COMMON_NACL_TYPES_H_
8
9 // TODO(gregoryd): add a Windows definition for base::FileDescriptor,
10 // replace the macros with inline functions.
11 namespace nacl {
12 #if defined(OS_WIN)
13 typedef HANDLE FileDescriptor;
14 #define NATIVE_HANDLE(desc) (desc)
15 #elif defined(OS_POSIX)
16 typedef base::FileDescriptor FileDescriptor;
17 #define NATIVE_HANDLE(desc) ((desc).fd)
18 #endif
19 }
20
21 #endif // CHROME_COMMON_NACL_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/common/nacl_messages_internal.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698