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

Side by Side Diff: base/files/platform_file.h

Issue 555503007: Cleanup: Get rid of OS_WIN/OS_POSIX ifdefs from MojoApplication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 6 years, 3 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
OLDNEW
(Empty)
1 // Copyright 2014 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 BASE_FILES_PLATFORM_FILE_H_
6 #define BASE_FILES_PLATFORM_FILE_H_
7
8 #include "build/build_config.h"
9 #if defined(OS_WIN)
10 #include <windows.h>
11 #endif
12
13 namespace base {
14
15 #if defined(OS_WIN)
16 typedef HANDLE PlatformFile;
17 const PlatformFile kInvalidPlatformFile = INVALID_HANDLE_VALUE;
18 #elif defined(OS_POSIX)
19 typedef int PlatformFile;
20 const PlatformFile kInvalidPlatformFile = -1;
21 #endif // defined(OS_POSIX)
22
23 } // namespace base
24
25 #endif // BASE_FILES_PLATFORM_FILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698