| Index: chrome/browser/media_galleries/fileapi/native_media_file_util.h
|
| diff --git a/chrome/browser/media_galleries/fileapi/native_media_file_util.h b/chrome/browser/media_galleries/fileapi/native_media_file_util.h
|
| index 4575439682a5b28647d43e7f5c7d98b63880cc60..778b72dd30d4d427079510322e870e68914513c1 100644
|
| --- a/chrome/browser/media_galleries/fileapi/native_media_file_util.h
|
| +++ b/chrome/browser/media_galleries/fileapi/native_media_file_util.h
|
| @@ -21,7 +21,7 @@ class MediaPathFilter;
|
| class NativeMediaFileUtil : public storage::AsyncFileUtil {
|
| public:
|
| explicit NativeMediaFileUtil(MediaPathFilter* media_path_filter);
|
| - virtual ~NativeMediaFileUtil();
|
| + ~NativeMediaFileUtil() override;
|
|
|
| // Uses the MIME sniffer code, which actually looks into the file,
|
| // to determine if it is really a media file (to avoid exposing
|
| @@ -42,69 +42,60 @@ class NativeMediaFileUtil : public storage::AsyncFileUtil {
|
| const scoped_refptr<storage::ShareableFileReference>& file_ref);
|
|
|
| // AsyncFileUtil overrides.
|
| - virtual void CreateOrOpen(
|
| - scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - int file_flags,
|
| - const CreateOrOpenCallback& callback) override;
|
| - virtual void EnsureFileExists(
|
| - scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - const EnsureFileExistsCallback& callback) override;
|
| - virtual void CreateDirectory(
|
| - scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - bool exclusive,
|
| - bool recursive,
|
| - const StatusCallback& callback) override;
|
| - virtual void GetFileInfo(
|
| - scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - const GetFileInfoCallback& callback) override;
|
| - virtual void ReadDirectory(
|
| - scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - const ReadDirectoryCallback& callback) override;
|
| - virtual void Touch(scoped_ptr<storage::FileSystemOperationContext> context,
|
| + 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,
|
| + const storage::FileSystemURL& url,
|
| + const GetFileInfoCallback& callback) override;
|
| + void ReadDirectory(scoped_ptr<storage::FileSystemOperationContext> context,
|
| const storage::FileSystemURL& url,
|
| - const base::Time& last_access_time,
|
| - const base::Time& last_modified_time,
|
| + const ReadDirectoryCallback& callback) override;
|
| + void Touch(scoped_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,
|
| + const storage::FileSystemURL& url,
|
| + int64 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;
|
| - virtual void Truncate(scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - int64 length,
|
| - const StatusCallback& callback) override;
|
| - virtual 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;
|
| - virtual void MoveFileLocal(
|
| - scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& src_url,
|
| - const storage::FileSystemURL& dest_url,
|
| - CopyOrMoveOption option,
|
| - const StatusCallback& callback) override;
|
| - virtual void CopyInForeignFile(
|
| + void MoveFileLocal(scoped_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,
|
| const base::FilePath& src_file_path,
|
| const storage::FileSystemURL& dest_url,
|
| const StatusCallback& callback) override;
|
| - virtual void DeleteFile(
|
| - scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - const StatusCallback& callback) override;
|
| - virtual void DeleteDirectory(
|
| - scoped_ptr<storage::FileSystemOperationContext> context,
|
| - const storage::FileSystemURL& url,
|
| - const StatusCallback& callback) override;
|
| - virtual void DeleteRecursively(
|
| + void DeleteFile(scoped_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 DeleteRecursively(
|
| scoped_ptr<storage::FileSystemOperationContext> context,
|
| const storage::FileSystemURL& url,
|
| const StatusCallback& callback) override;
|
| - virtual void CreateSnapshotFile(
|
| + void CreateSnapshotFile(
|
| scoped_ptr<storage::FileSystemOperationContext> context,
|
| const storage::FileSystemURL& url,
|
| const CreateSnapshotFileCallback& callback) override;
|
|
|