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

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

Powered by Google App Engine
This is Rietveld 408576698