blob: ea4d4825ba5e7e83f60612943287dd5e9ff4860b [file] [log] [blame]
// Copyright 2017 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/smb_client/smb_file_system.h"
namespace chromeos {
namespace smb_client {
using file_system_provider::AbortCallback;
SmbFileSystem::SmbFileSystem(
const file_system_provider::ProvidedFileSystemInfo& file_system_info)
: file_system_info_(file_system_info), weak_ptr_factory_(this) {}
SmbFileSystem::~SmbFileSystem() {}
AbortCallback SmbFileSystem::RequestUnmount(
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::GetMetadata(
const base::FilePath& entry_path,
ProvidedFileSystemInterface::MetadataFieldMask fields,
const ProvidedFileSystemInterface::GetMetadataCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::GetActions(
const std::vector<base::FilePath>& entry_paths,
const GetActionsCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::ExecuteAction(
const std::vector<base::FilePath>& entry_paths,
const std::string& action_id,
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::ReadDirectory(
const base::FilePath& directory_path,
const storage::AsyncFileUtil::ReadDirectoryCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::OpenFile(const base::FilePath& file_path,
file_system_provider::OpenFileMode mode,
const OpenFileCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::CloseFile(
int file_handle,
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::ReadFile(
int file_handle,
net::IOBuffer* buffer,
int64_t offset,
int length,
const ReadChunkReceivedCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::CreateDirectory(
const base::FilePath& directory_path,
bool recursive,
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::CreateFile(
const base::FilePath& file_path,
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::DeleteEntry(
const base::FilePath& entry_path,
bool recursive,
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::CopyEntry(
const base::FilePath& source_path,
const base::FilePath& target_path,
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::MoveEntry(
const base::FilePath& source_path,
const base::FilePath& target_path,
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::Truncate(
const base::FilePath& file_path,
int64_t length,
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::WriteFile(
int file_handle,
net::IOBuffer* buffer,
int64_t offset,
int length,
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
AbortCallback SmbFileSystem::AddWatcher(
const GURL& origin,
const base::FilePath& entry_path,
bool recursive,
bool persistent,
const storage::AsyncFileUtil::StatusCallback& callback,
const storage::WatcherManager::NotificationCallback&
notification_callback) {
NOTIMPLEMENTED();
return AbortCallback();
}
void SmbFileSystem::RemoveWatcher(
const GURL& origin,
const base::FilePath& entry_path,
bool recursive,
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
}
const file_system_provider::ProvidedFileSystemInfo&
SmbFileSystem::GetFileSystemInfo() const {
return file_system_info_;
}
file_system_provider::RequestManager* SmbFileSystem::GetRequestManager() {
NOTIMPLEMENTED();
return NULL;
}
file_system_provider::Watchers* SmbFileSystem::GetWatchers() {
NOTIMPLEMENTED();
return &watchers_;
}
const file_system_provider::OpenedFiles& SmbFileSystem::GetOpenedFiles() const {
NOTIMPLEMENTED();
return opened_files_;
}
void SmbFileSystem::AddObserver(
file_system_provider::ProvidedFileSystemObserver* observer) {
NOTIMPLEMENTED();
}
void SmbFileSystem::RemoveObserver(
file_system_provider::ProvidedFileSystemObserver* observer) {
NOTIMPLEMENTED();
}
void SmbFileSystem::SmbFileSystem::Notify(
const base::FilePath& entry_path,
bool recursive,
storage::WatcherManager::ChangeType change_type,
std::unique_ptr<file_system_provider::ProvidedFileSystemObserver::Changes>
changes,
const std::string& tag,
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
}
void SmbFileSystem::Configure(
const storage::AsyncFileUtil::StatusCallback& callback) {
NOTIMPLEMENTED();
}
base::WeakPtr<file_system_provider::ProvidedFileSystemInterface>
SmbFileSystem::GetWeakPtr() {
return weak_ptr_factory_.GetWeakPtr();
}
} // namespace smb_client
} // namespace chromeos