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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_async_file_util.cc
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_async_file_util.cc b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_async_file_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..07a160b4081ac01ce8212d5581230ada1b33787c
--- /dev/null
+++ b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_async_file_util.cc
@@ -0,0 +1,163 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_async_file_util.h"
+
+#include "base/threading/thread_task_runner_handle.h"
+#include "net/base/net_errors.h"
+#include "storage/browser/blob/shareable_file_reference.h"
+
+namespace arc {
+
+ArcContentFileSystemAsyncFileUtil::ArcContentFileSystemAsyncFileUtil() =
+ default;
+
+ArcContentFileSystemAsyncFileUtil::~ArcContentFileSystemAsyncFileUtil() =
+ default;
+
+void ArcContentFileSystemAsyncFileUtil::CreateOrOpen(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& url,
+ int file_flags,
+ const CreateOrOpenCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE,
+ base::Bind(callback, base::Passed(base::File()), base::Closure()));
+}
+
+void ArcContentFileSystemAsyncFileUtil::EnsureFileExists(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& url,
+ const EnsureFileExistsCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED, false));
+}
+
+void ArcContentFileSystemAsyncFileUtil::CreateDirectory(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& url,
+ bool exclusive,
+ bool recursive,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
+}
+
+void ArcContentFileSystemAsyncFileUtil::GetFileInfo(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& url,
+ int fields,
+ const GetFileInfoCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE,
+ base::Bind(callback, base::File::FILE_ERROR_FAILED, base::File::Info()));
+}
+
+void ArcContentFileSystemAsyncFileUtil::ReadDirectory(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& url,
+ const ReadDirectoryCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE,
+ base::Bind(callback, base::File::FILE_ERROR_FAILED, EntryList(), false));
+}
+
+void ArcContentFileSystemAsyncFileUtil::Touch(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& url,
+ const base::Time& last_access_time,
+ const base::Time& last_modified_time,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
+}
+
+void ArcContentFileSystemAsyncFileUtil::Truncate(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& url,
+ int64_t length,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
+}
+
+void ArcContentFileSystemAsyncFileUtil::CopyFileLocal(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& src_url,
+ const storage::FileSystemURL& dest_url,
+ CopyOrMoveOption option,
+ const CopyFileProgressCallback& progress_callback,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
+}
+
+void ArcContentFileSystemAsyncFileUtil::MoveFileLocal(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& src_url,
+ const storage::FileSystemURL& dest_url,
+ CopyOrMoveOption option,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
+}
+
+void ArcContentFileSystemAsyncFileUtil::CopyInForeignFile(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const base::FilePath& src_file_path,
+ const storage::FileSystemURL& dest_url,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
+}
+
+void ArcContentFileSystemAsyncFileUtil::DeleteFile(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& url,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
+}
+
+void ArcContentFileSystemAsyncFileUtil::DeleteDirectory(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& url,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
+}
+
+void ArcContentFileSystemAsyncFileUtil::DeleteRecursively(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& url,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED));
+}
+
+void ArcContentFileSystemAsyncFileUtil::CreateSnapshotFile(
+ std::unique_ptr<storage::FileSystemOperationContext> context,
+ const storage::FileSystemURL& url,
+ const CreateSnapshotFileCallback& callback) {
+ NOTIMPLEMENTED();
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_FAILED,
+ base::File::Info(), base::FilePath(),
+ scoped_refptr<storage::ShareableFileReference>()));
+}
+
+} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698