Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_PLATFORM_FILE_H_ | 5 #ifndef BASE_PLATFORM_FILE_H_ |
| 6 #define BASE_PLATFORM_FILE_H_ | 6 #define BASE_PLATFORM_FILE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| 11 #include <windows.h> | 11 #include <windows.h> |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "base/base_api.h" | 16 #include "base/base_api.h" |
| 17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 18 #include "base/file_path.h" | 18 #include "base/file_path.h" |
| 19 #include "base/process.h" | |
|
brettw
2011/06/14 15:17:24
Is this necessary any more?
| |
| 19 #include "base/time.h" | 20 #include "base/time.h" |
| 20 | 21 |
| 21 namespace base { | 22 namespace base { |
| 22 | 23 |
| 23 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
| 24 typedef HANDLE PlatformFile; | 25 typedef HANDLE PlatformFile; |
| 25 const PlatformFile kInvalidPlatformFileValue = INVALID_HANDLE_VALUE; | 26 const PlatformFile kInvalidPlatformFileValue = INVALID_HANDLE_VALUE; |
| 26 #elif defined(OS_POSIX) | 27 #elif defined(OS_POSIX) |
| 27 typedef int PlatformFile; | 28 typedef int PlatformFile; |
| 28 const PlatformFile kInvalidPlatformFileValue = -1; | 29 const PlatformFile kInvalidPlatformFileValue = -1; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 174 return temp; | 175 return temp; |
| 175 } | 176 } |
| 176 | 177 |
| 177 private: | 178 private: |
| 178 PlatformFile* value_; | 179 PlatformFile* value_; |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 } // namespace base | 182 } // namespace base |
| 182 | 183 |
| 183 #endif // BASE_PLATFORM_FILE_H_ | 184 #endif // BASE_PLATFORM_FILE_H_ |
| OLD | NEW |