Index: base/files/file_proxy.cc |
diff --git a/base/files/file_proxy.cc b/base/files/file_proxy.cc |
index fa04d7c44e883aaebf3eef1c068839244aae3d96..291b98d1117fbc190a15e5b8b8e31d70ab1b3b74 100644 |
--- a/base/files/file_proxy.cc |
+++ b/base/files/file_proxy.cc |
@@ -265,10 +265,19 @@ bool FileProxy::IsValid() const { |
return file_.IsValid(); |
} |
+void FileProxy::SetFile(File file) { |
+ DCHECK(!file_.IsValid()); |
+ file_ = file.Pass(); |
+} |
+ |
File FileProxy::TakeFile() { |
return file_.Pass(); |
} |
+PlatformFile FileProxy::GetPlatformFile() const { |
+ return file_.GetPlatformFile(); |
+} |
+ |
bool FileProxy::Close(const StatusCallback& callback) { |
DCHECK(file_.IsValid()); |
GenericFileHelper* helper = new GenericFileHelper(this, file_.Pass()); |
@@ -347,9 +356,4 @@ bool FileProxy::Flush(const StatusCallback& callback) { |
Bind(&GenericFileHelper::Reply, Owned(helper), callback)); |
} |
-void FileProxy::SetFile(File file) { |
- DCHECK(!file_.IsValid()); |
- file_ = file.Pass(); |
-} |
- |
} // namespace base |