| Index: base/files/file.h
|
| diff --git a/base/files/file.h b/base/files/file.h
|
| index f6ca8f81d948edc3835d1c0266d0647050f3f302..9c2479d03ef436f2a29409dd72be79801b0f7541 100644
|
| --- a/base/files/file.h
|
| +++ b/base/files/file.h
|
| @@ -12,6 +12,7 @@
|
|
|
| #include "base/base_export.h"
|
| #include "base/basictypes.h"
|
| +#include "base/files/scoped_file.h"
|
| #include "base/move.h"
|
| #include "base/time/time.h"
|
|
|
| @@ -177,7 +178,7 @@ class BASE_EXPORT File {
|
| // return;
|
| Error error_details() const { return error_details_; }
|
|
|
| - PlatformFile GetPlatformFile() const { return file_; }
|
| + PlatformFile GetPlatformFile() const;
|
| PlatformFile TakePlatformFile();
|
|
|
| // Destroying this object closes the file automatically.
|
| @@ -276,7 +277,7 @@ class BASE_EXPORT File {
|
| #if defined(OS_WIN)
|
| win::ScopedHandle file_;
|
| #elif defined(OS_POSIX)
|
| - PlatformFile file_;
|
| + ScopedFD file_;
|
| #endif
|
|
|
| Error error_details_;
|
|
|