| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_ASYNC_FILE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_ASYNC_FILE_U
TIL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_ASYNC_FILE_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_ASYNC_FILE_U
TIL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | |
| 9 | |
| 10 #include <memory> | |
| 11 | |
| 12 #include "base/callback.h" | |
| 13 #include "base/macros.h" | |
| 14 #include "storage/browser/fileapi/async_file_util.h" | 8 #include "storage/browser/fileapi/async_file_util.h" |
| 15 | 9 |
| 16 namespace drive { | 10 namespace arc { |
| 17 | 11 |
| 18 class FileSystemInterface; | 12 class ArcContentFileSystemAsyncFileUtil : public storage::AsyncFileUtil { |
| 19 | |
| 20 namespace internal { | |
| 21 | |
| 22 // The implementation of storage::AsyncFileUtil for Drive File System. | |
| 23 class AsyncFileUtil : public storage::AsyncFileUtil { | |
| 24 public: | 13 public: |
| 25 AsyncFileUtil(); | 14 ArcContentFileSystemAsyncFileUtil(); |
| 26 ~AsyncFileUtil() override; | 15 ~ArcContentFileSystemAsyncFileUtil() override; |
| 27 | 16 |
| 28 // storage::AsyncFileUtil overrides. | 17 // storage::AsyncFileUtil overrides. |
| 29 void CreateOrOpen( | 18 void CreateOrOpen( |
| 30 std::unique_ptr<storage::FileSystemOperationContext> context, | 19 std::unique_ptr<storage::FileSystemOperationContext> context, |
| 31 const storage::FileSystemURL& url, | 20 const storage::FileSystemURL& url, |
| 32 int file_flags, | 21 int file_flags, |
| 33 const CreateOrOpenCallback& callback) override; | 22 const CreateOrOpenCallback& callback) override; |
| 34 void EnsureFileExists( | 23 void EnsureFileExists( |
| 35 std::unique_ptr<storage::FileSystemOperationContext> context, | 24 std::unique_ptr<storage::FileSystemOperationContext> context, |
| 36 const storage::FileSystemURL& url, | 25 const storage::FileSystemURL& url, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 void DeleteRecursively( | 75 void DeleteRecursively( |
| 87 std::unique_ptr<storage::FileSystemOperationContext> context, | 76 std::unique_ptr<storage::FileSystemOperationContext> context, |
| 88 const storage::FileSystemURL& url, | 77 const storage::FileSystemURL& url, |
| 89 const StatusCallback& callback) override; | 78 const StatusCallback& callback) override; |
| 90 void CreateSnapshotFile( | 79 void CreateSnapshotFile( |
| 91 std::unique_ptr<storage::FileSystemOperationContext> context, | 80 std::unique_ptr<storage::FileSystemOperationContext> context, |
| 92 const storage::FileSystemURL& url, | 81 const storage::FileSystemURL& url, |
| 93 const CreateSnapshotFileCallback& callback) override; | 82 const CreateSnapshotFileCallback& callback) override; |
| 94 | 83 |
| 95 private: | 84 private: |
| 96 DISALLOW_COPY_AND_ASSIGN(AsyncFileUtil); | 85 DISALLOW_COPY_AND_ASSIGN(ArcContentFileSystemAsyncFileUtil); |
| 97 }; | 86 }; |
| 98 | 87 |
| 99 } // namespace internal | 88 } // namespace arc |
| 100 } // namespace drive | |
| 101 | 89 |
| 102 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILEAPI_ASYNC_FILE_UTIL_H_ | 90 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_ASYNC_FIL
E_UTIL_H_ |
| OLD | NEW |