| Index: webrtc/base/file.cc
|
| diff --git a/webrtc/base/file.cc b/webrtc/base/file.cc
|
| index 9a865884ea07ca6f956c36318193ecb4bfa9293d..c97504f9c737a438c1b2bd585e58bddb087810ed 100644
|
| --- a/webrtc/base/file.cc
|
| +++ b/webrtc/base/file.cc
|
| @@ -18,6 +18,14 @@ File::~File() {
|
| Close();
|
| }
|
|
|
| +File File::Open(const std::string& path) {
|
| + return File(OpenPlatformFile(path));
|
| +}
|
| +
|
| +File File::Create(const std::string& path) {
|
| + return File(CreatePlatformFile(path));
|
| +}
|
| +
|
| File::File(File&& other) : file_(other.file_) {
|
| other.file_ = kInvalidPlatformFileValue;
|
| }
|
|
|