Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.h

Issue 2568033002: mediaview: Skeleton for ARC Documents Provider FS. (Closed)
Patch Set: IWYU and comments. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_ASYNC_FILE_UT IL_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_ASYNC_FILE_UT IL_H_
7
8 #include <memory>
9
10 #include "base/callback.h"
11 #include "base/macros.h"
12 #include "storage/browser/fileapi/async_file_util.h"
13
14 namespace arc {
15
16 // The implementation of storage::AsyncFileUtil for media view.
17 //
18 // All of the methods must be called on the IO thread.
19 class ArcDocumentsProviderAsyncFileUtil : public storage::AsyncFileUtil {
20 public:
21 ArcDocumentsProviderAsyncFileUtil();
22 ~ArcDocumentsProviderAsyncFileUtil() override;
23
24 // storage::AsyncFileUtil overrides.
25 void CreateOrOpen(
26 std::unique_ptr<storage::FileSystemOperationContext> context,
27 const storage::FileSystemURL& url,
28 int file_flags,
29 const CreateOrOpenCallback& callback) override;
30 void EnsureFileExists(
31 std::unique_ptr<storage::FileSystemOperationContext> context,
32 const storage::FileSystemURL& url,
33 const EnsureFileExistsCallback& callback) override;
34 void CreateDirectory(
35 std::unique_ptr<storage::FileSystemOperationContext> context,
36 const storage::FileSystemURL& url,
37 bool exclusive,
38 bool recursive,
39 const StatusCallback& callback) override;
40 void GetFileInfo(std::unique_ptr<storage::FileSystemOperationContext> context,
41 const storage::FileSystemURL& url,
42 int fields,
43 const GetFileInfoCallback& callback) override;
44 void ReadDirectory(
45 std::unique_ptr<storage::FileSystemOperationContext> context,
46 const storage::FileSystemURL& url,
47 const ReadDirectoryCallback& callback) override;
48 void Touch(std::unique_ptr<storage::FileSystemOperationContext> context,
49 const storage::FileSystemURL& url,
50 const base::Time& last_access_time,
51 const base::Time& last_modified_time,
52 const StatusCallback& callback) override;
53 void Truncate(std::unique_ptr<storage::FileSystemOperationContext> context,
54 const storage::FileSystemURL& url,
55 int64_t length,
56 const StatusCallback& callback) override;
57 void CopyFileLocal(
58 std::unique_ptr<storage::FileSystemOperationContext> context,
59 const storage::FileSystemURL& src_url,
60 const storage::FileSystemURL& dest_url,
61 CopyOrMoveOption option,
62 const CopyFileProgressCallback& progress_callback,
63 const StatusCallback& callback) override;
64 void MoveFileLocal(
65 std::unique_ptr<storage::FileSystemOperationContext> context,
66 const storage::FileSystemURL& src_url,
67 const storage::FileSystemURL& dest_url,
68 CopyOrMoveOption option,
69 const StatusCallback& callback) override;
70 void CopyInForeignFile(
71 std::unique_ptr<storage::FileSystemOperationContext> context,
72 const base::FilePath& src_file_path,
73 const storage::FileSystemURL& dest_url,
74 const StatusCallback& callback) override;
75 void DeleteFile(std::unique_ptr<storage::FileSystemOperationContext> context,
76 const storage::FileSystemURL& url,
77 const StatusCallback& callback) override;
78 void DeleteDirectory(
79 std::unique_ptr<storage::FileSystemOperationContext> context,
80 const storage::FileSystemURL& url,
81 const StatusCallback& callback) override;
82 void DeleteRecursively(
83 std::unique_ptr<storage::FileSystemOperationContext> context,
84 const storage::FileSystemURL& url,
85 const StatusCallback& callback) override;
86 void CreateSnapshotFile(
87 std::unique_ptr<storage::FileSystemOperationContext> context,
88 const storage::FileSystemURL& url,
89 const CreateSnapshotFileCallback& callback) override;
90
91 private:
92 DISALLOW_COPY_AND_ASSIGN(ArcDocumentsProviderAsyncFileUtil);
93 };
94
95 } // namespace arc
96
97 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_ASYNC_FILE _UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/arc/fileapi/arc_documents_provider_async_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698