Index: chrome/browser/local_discovery/storage/privet_filesystem_async_util.cc |
diff --git a/chrome/browser/local_discovery/storage/privet_filesystem_async_util.cc b/chrome/browser/local_discovery/storage/privet_filesystem_async_util.cc |
deleted file mode 100644 |
index 9fece15b51e9738f9dae2b07a445bc362e3632ea..0000000000000000000000000000000000000000 |
--- a/chrome/browser/local_discovery/storage/privet_filesystem_async_util.cc |
+++ /dev/null |
@@ -1,173 +0,0 @@ |
-// Copyright 2014 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/local_discovery/storage/privet_filesystem_async_util.h" |
- |
-#include "chrome/browser/local_discovery/storage/path_util.h" |
-#include "webkit/browser/fileapi/file_system_url.h" |
-#include "webkit/common/blob/shareable_file_reference.h" |
- |
-namespace local_discovery { |
- |
-PrivetFileSystemAsyncUtil::PrivetFileSystemAsyncUtil( |
- content::BrowserContext* browser_context) { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
- operation_factory_ = new PrivetFileSystemOperationFactory(browser_context); |
-} |
- |
-PrivetFileSystemAsyncUtil::~PrivetFileSystemAsyncUtil() { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
- content::BrowserThread::DeleteSoon( |
- content::BrowserThread::UI, FROM_HERE, operation_factory_); |
-} |
- |
-void PrivetFileSystemAsyncUtil::CreateOrOpen( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& url, |
- int file_flags, |
- const CreateOrOpenCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File(base::File::FILE_ERROR_INVALID_OPERATION), |
- base::Closure()); |
-} |
- |
-void PrivetFileSystemAsyncUtil::EnsureFileExists( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& url, |
- const EnsureFileExistsCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION, false); |
-} |
- |
-void PrivetFileSystemAsyncUtil::CreateDirectory( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& url, |
- bool exclusive, |
- bool recursive, |
- const StatusCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION); |
-} |
- |
-void PrivetFileSystemAsyncUtil::GetFileInfo( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& url, |
- const GetFileInfoCallback& callback) { |
- ParsedPrivetPath parsed_path(url.path()); |
- |
- if (parsed_path.path == "/") { |
- base::File::Info file_info; |
- file_info.is_directory = true; |
- file_info.is_symbolic_link = false; |
- callback.Run(base::File::FILE_OK, file_info); |
- return; |
- } |
- |
- content::BrowserThread::PostTask( |
- content::BrowserThread::UI, |
- FROM_HERE, |
- base::Bind(&PrivetFileSystemOperationFactory::GetFileInfo, |
- operation_factory_->GetWeakPtr(), |
- url, |
- callback)); |
-} |
- |
-void PrivetFileSystemAsyncUtil::ReadDirectory( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& url, |
- const ReadDirectoryCallback& callback) { |
- content::BrowserThread::PostTask( |
- content::BrowserThread::UI, |
- FROM_HERE, |
- base::Bind(&PrivetFileSystemOperationFactory::ReadDirectory, |
- operation_factory_->GetWeakPtr(), |
- url, |
- callback)); |
-} |
- |
-void PrivetFileSystemAsyncUtil::Touch( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& url, |
- const base::Time& last_access_time, |
- const base::Time& last_modified_time, |
- const StatusCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION); |
-} |
- |
-void PrivetFileSystemAsyncUtil::Truncate( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& url, |
- int64 length, |
- const StatusCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION); |
-} |
- |
-void PrivetFileSystemAsyncUtil::CopyFileLocal( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& src_url, |
- const storage::FileSystemURL& dest_url, |
- CopyOrMoveOption option, |
- const CopyFileProgressCallback& progress_callback, |
- const StatusCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION); |
-} |
- |
-void PrivetFileSystemAsyncUtil::MoveFileLocal( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& src_url, |
- const storage::FileSystemURL& dest_url, |
- CopyOrMoveOption option, |
- const StatusCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION); |
-} |
- |
-void PrivetFileSystemAsyncUtil::CopyInForeignFile( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const base::FilePath& src_file_path, |
- const storage::FileSystemURL& dest_url, |
- const StatusCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION); |
-} |
- |
-void PrivetFileSystemAsyncUtil::DeleteFile( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& url, |
- const StatusCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION); |
-} |
- |
-void PrivetFileSystemAsyncUtil::DeleteDirectory( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& url, |
- const StatusCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION); |
-} |
- |
-void PrivetFileSystemAsyncUtil::DeleteRecursively( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& url, |
- const StatusCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION); |
-} |
- |
-void PrivetFileSystemAsyncUtil::CreateSnapshotFile( |
- scoped_ptr<storage::FileSystemOperationContext> context, |
- const storage::FileSystemURL& url, |
- const CreateSnapshotFileCallback& callback) { |
- NOTIMPLEMENTED(); |
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION, |
- base::File::Info(), |
- base::FilePath(), |
- scoped_refptr<storage::ShareableFileReference>()); |
-} |
- |
-} // namespace local_discovery |