| Index: chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util.h
|
| diff --git a/chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util.h b/chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util.h
|
| index 7d9c9a3758786c3e597b0dff63dd56945e27621c..38b04681da669158a00c9c2336abd3b56385fcad 100644
|
| --- a/chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util.h
|
| +++ b/chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util.h
|
| @@ -7,9 +7,10 @@
|
|
|
| #include <stdint.h>
|
|
|
| +#include <memory>
|
| +
|
| #include "base/callback.h"
|
| #include "base/macros.h"
|
| -#include "base/memory/scoped_ptr.h"
|
| #include "storage/browser/fileapi/async_file_util.h"
|
|
|
| namespace chromeos {
|
| @@ -36,62 +37,69 @@ class ProviderAsyncFileUtil : public storage::AsyncFileUtil {
|
| ~ProviderAsyncFileUtil() override;
|
|
|
| // storage::AsyncFileUtil overrides.
|
| - void CreateOrOpen(scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - int file_flags,
|
| - const CreateOrOpenCallback& callback) override;
|
| - void EnsureFileExists(scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - const EnsureFileExistsCallback& callback) override;
|
| - void CreateDirectory(scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - bool exclusive,
|
| - bool recursive,
|
| - const StatusCallback& callback) override;
|
| - void GetFileInfo(scoped_ptr<storage::FileSystemOperationContext> context,
|
| + void CreateOrOpen(
|
| + std::unique_ptr<storage::FileSystemOperationContext> context,
|
| + const storage::FileSystemURL& url,
|
| + int file_flags,
|
| + const CreateOrOpenCallback& callback) override;
|
| + void EnsureFileExists(
|
| + std::unique_ptr<storage::FileSystemOperationContext> context,
|
| + const storage::FileSystemURL& url,
|
| + const EnsureFileExistsCallback& callback) override;
|
| + void CreateDirectory(
|
| + std::unique_ptr<storage::FileSystemOperationContext> context,
|
| + const storage::FileSystemURL& url,
|
| + bool exclusive,
|
| + bool recursive,
|
| + const StatusCallback& callback) override;
|
| + void GetFileInfo(std::unique_ptr<storage::FileSystemOperationContext> context,
|
| const storage::FileSystemURL& url,
|
| int fields,
|
| const GetFileInfoCallback& callback) override;
|
| - void ReadDirectory(scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - const ReadDirectoryCallback& callback) override;
|
| - void Touch(scoped_ptr<storage::FileSystemOperationContext> context,
|
| + void ReadDirectory(
|
| + std::unique_ptr<storage::FileSystemOperationContext> context,
|
| + const storage::FileSystemURL& url,
|
| + const ReadDirectoryCallback& callback) override;
|
| + void Touch(std::unique_ptr<storage::FileSystemOperationContext> context,
|
| const storage::FileSystemURL& url,
|
| const base::Time& last_access_time,
|
| const base::Time& last_modified_time,
|
| const StatusCallback& callback) override;
|
| - void Truncate(scoped_ptr<storage::FileSystemOperationContext> context,
|
| + void Truncate(std::unique_ptr<storage::FileSystemOperationContext> context,
|
| const storage::FileSystemURL& url,
|
| int64_t length,
|
| const StatusCallback& callback) override;
|
| - void CopyFileLocal(scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& src_url,
|
| - const storage::FileSystemURL& dest_url,
|
| - CopyOrMoveOption option,
|
| - const CopyFileProgressCallback& progress_callback,
|
| - const StatusCallback& callback) override;
|
| - void MoveFileLocal(scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& src_url,
|
| - const storage::FileSystemURL& dest_url,
|
| - CopyOrMoveOption option,
|
| - const StatusCallback& callback) override;
|
| + void CopyFileLocal(
|
| + std::unique_ptr<storage::FileSystemOperationContext> context,
|
| + const storage::FileSystemURL& src_url,
|
| + const storage::FileSystemURL& dest_url,
|
| + CopyOrMoveOption option,
|
| + const CopyFileProgressCallback& progress_callback,
|
| + const StatusCallback& callback) override;
|
| + void MoveFileLocal(
|
| + std::unique_ptr<storage::FileSystemOperationContext> context,
|
| + const storage::FileSystemURL& src_url,
|
| + const storage::FileSystemURL& dest_url,
|
| + CopyOrMoveOption option,
|
| + const StatusCallback& callback) override;
|
| void CopyInForeignFile(
|
| - scoped_ptr<storage::FileSystemOperationContext> context,
|
| + std::unique_ptr<storage::FileSystemOperationContext> context,
|
| const base::FilePath& src_file_path,
|
| const storage::FileSystemURL& dest_url,
|
| const StatusCallback& callback) override;
|
| - void DeleteFile(scoped_ptr<storage::FileSystemOperationContext> context,
|
| + void DeleteFile(std::unique_ptr<storage::FileSystemOperationContext> context,
|
| const storage::FileSystemURL& url,
|
| const StatusCallback& callback) override;
|
| - void DeleteDirectory(scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - const StatusCallback& callback) override;
|
| + void DeleteDirectory(
|
| + std::unique_ptr<storage::FileSystemOperationContext> context,
|
| + const storage::FileSystemURL& url,
|
| + const StatusCallback& callback) override;
|
| void DeleteRecursively(
|
| - scoped_ptr<storage::FileSystemOperationContext> context,
|
| + std::unique_ptr<storage::FileSystemOperationContext> context,
|
| const storage::FileSystemURL& url,
|
| const StatusCallback& callback) override;
|
| void CreateSnapshotFile(
|
| - scoped_ptr<storage::FileSystemOperationContext> context,
|
| + std::unique_ptr<storage::FileSystemOperationContext> context,
|
| const storage::FileSystemURL& url,
|
| const CreateSnapshotFileCallback& callback) override;
|
|
|
|
|