| Index: chromecast/base/file_utils.h
|
| diff --git a/chromecast/base/file_utils.h b/chromecast/base/file_utils.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..54bfda27db5d1d7e0e876594cdd648e7bda4d5ea
|
| --- /dev/null
|
| +++ b/chromecast/base/file_utils.h
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROMECAST_BASE_FILE_UTILS_H_
|
| +#define CHROMECAST_BASE_FILE_UTILS_H_
|
| +
|
| +#include "base/files/file_path.h"
|
| +
|
| +namespace chromecast {
|
| +
|
| +// Used for locking/unlocking files. This is a blocking request. If the
|
| +// function returns false, this indicates that either the file specified by
|
| +// |path| does not exist, or the locking procedure failed.
|
| +bool LockFile(const base::FilePath& path);
|
| +bool UnlockFile(const base::FilePath& path);
|
| +
|
| +} // namespace chromecast
|
| +
|
| +#endif // CHROMECAST_BASE_FILE_UTILS_H_
|
|
|