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

Side by Side Diff: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_async_file_util.cc

Issue 2411323002: arc: Empty implementation of ARC content file system (Closed)
Patch Set: Address comments Created 4 years, 2 months 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 #include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_async_file _util.h"
6
7 #include "base/threading/thread_task_runner_handle.h"
8 #include "net/base/net_errors.h"
9 #include "storage/browser/blob/shareable_file_reference.h"
10
11 namespace arc {
12
13 ArcContentFileSystemAsyncFileUtil::ArcContentFileSystemAsyncFileUtil() =
14 default;
15
16 ArcContentFileSystemAsyncFileUtil::~ArcContentFileSystemAsyncFileUtil() =
17 default;
18
19 void ArcContentFileSystemAsyncFileUtil::CreateOrOpen(
20 std::unique_ptr<storage::FileSystemOperationContext> context,
21 const storage::FileSystemURL& url,
22 int file_flags,
23 const CreateOrOpenCallback& callback) {
24 NOTIMPLEMENTED();
25 base::ThreadTaskRunnerHandle::Get()->PostTask(
26 FROM_HERE,
27 base::Bind(callback, base::Passed(base::File()), base::Closure()));
28 }
29
30 void ArcContentFileSystemAsyncFileUtil::EnsureFileExists(
31 std::unique_ptr<storage::FileSystemOperationContext> context,
32 const storage::FileSystemURL& url,
33 const EnsureFileExistsCallback& callback) {
34 NOTIMPLEMENTED();
35 base::ThreadTaskRunnerHandle::Get()->PostTask(
36 FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED, false));
37 }
38
39 void ArcContentFileSystemAsyncFileUtil::CreateDirectory(
40 std::unique_ptr<storage::FileSystemOperationContext> context,
41 const storage::FileSystemURL& url,
42 bool exclusive,
43 bool recursive,
44 const StatusCallback& callback) {
45 NOTIMPLEMENTED();
46 base::ThreadTaskRunnerHandle::Get()->PostTask(
47 FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
48 }
49
50 void ArcContentFileSystemAsyncFileUtil::GetFileInfo(
51 std::unique_ptr<storage::FileSystemOperationContext> context,
52 const storage::FileSystemURL& url,
53 int fields,
54 const GetFileInfoCallback& callback) {
55 NOTIMPLEMENTED();
56 base::ThreadTaskRunnerHandle::Get()->PostTask(
57 FROM_HERE,
58 base::Bind(callback, base::File::FILE_ERROR_FAILED, base::File::Info()));
59 }
60
61 void ArcContentFileSystemAsyncFileUtil::ReadDirectory(
62 std::unique_ptr<storage::FileSystemOperationContext> context,
63 const storage::FileSystemURL& url,
64 const ReadDirectoryCallback& callback) {
65 NOTIMPLEMENTED();
66 base::ThreadTaskRunnerHandle::Get()->PostTask(
67 FROM_HERE,
68 base::Bind(callback, base::File::FILE_ERROR_FAILED, EntryList(), false));
69 }
70
71 void ArcContentFileSystemAsyncFileUtil::Touch(
72 std::unique_ptr<storage::FileSystemOperationContext> context,
73 const storage::FileSystemURL& url,
74 const base::Time& last_access_time,
75 const base::Time& last_modified_time,
76 const StatusCallback& callback) {
77 NOTIMPLEMENTED();
78 base::ThreadTaskRunnerHandle::Get()->PostTask(
79 FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
80 }
81
82 void ArcContentFileSystemAsyncFileUtil::Truncate(
83 std::unique_ptr<storage::FileSystemOperationContext> context,
84 const storage::FileSystemURL& url,
85 int64_t length,
86 const StatusCallback& callback) {
87 NOTIMPLEMENTED();
88 base::ThreadTaskRunnerHandle::Get()->PostTask(
89 FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
90 }
91
92 void ArcContentFileSystemAsyncFileUtil::CopyFileLocal(
93 std::unique_ptr<storage::FileSystemOperationContext> context,
94 const storage::FileSystemURL& src_url,
95 const storage::FileSystemURL& dest_url,
96 CopyOrMoveOption option,
97 const CopyFileProgressCallback& progress_callback,
98 const StatusCallback& callback) {
99 NOTIMPLEMENTED();
100 base::ThreadTaskRunnerHandle::Get()->PostTask(
101 FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
102 }
103
104 void ArcContentFileSystemAsyncFileUtil::MoveFileLocal(
105 std::unique_ptr<storage::FileSystemOperationContext> context,
106 const storage::FileSystemURL& src_url,
107 const storage::FileSystemURL& dest_url,
108 CopyOrMoveOption option,
109 const StatusCallback& callback) {
110 NOTIMPLEMENTED();
111 base::ThreadTaskRunnerHandle::Get()->PostTask(
112 FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
113 }
114
115 void ArcContentFileSystemAsyncFileUtil::CopyInForeignFile(
116 std::unique_ptr<storage::FileSystemOperationContext> context,
117 const base::FilePath& src_file_path,
118 const storage::FileSystemURL& dest_url,
119 const StatusCallback& callback) {
120 NOTIMPLEMENTED();
121 base::ThreadTaskRunnerHandle::Get()->PostTask(
122 FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
123 }
124
125 void ArcContentFileSystemAsyncFileUtil::DeleteFile(
126 std::unique_ptr<storage::FileSystemOperationContext> context,
127 const storage::FileSystemURL& url,
128 const StatusCallback& callback) {
129 NOTIMPLEMENTED();
130 base::ThreadTaskRunnerHandle::Get()->PostTask(
131 FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
132 }
133
134 void ArcContentFileSystemAsyncFileUtil::DeleteDirectory(
135 std::unique_ptr<storage::FileSystemOperationContext> context,
136 const storage::FileSystemURL& url,
137 const StatusCallback& callback) {
138 NOTIMPLEMENTED();
139 base::ThreadTaskRunnerHandle::Get()->PostTask(
140 FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
141 }
142
143 void ArcContentFileSystemAsyncFileUtil::DeleteRecursively(
144 std::unique_ptr<storage::FileSystemOperationContext> context,
145 const storage::FileSystemURL& url,
146 const StatusCallback& callback) {
147 NOTIMPLEMENTED();
148 base::ThreadTaskRunnerHandle::Get()->PostTask(
149 FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
150 }
151
152 void ArcContentFileSystemAsyncFileUtil::CreateSnapshotFile(
153 std::unique_ptr<storage::FileSystemOperationContext> context,
154 const storage::FileSystemURL& url,
155 const CreateSnapshotFileCallback& callback) {
156 NOTIMPLEMENTED();
157 base::ThreadTaskRunnerHandle::Get()->PostTask(
158 FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED,
159 base::File::Info(), base::FilePath(),
160 scoped_refptr<storage::ShareableFileReference>()));
161 }
162
163 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698