#include "chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.h"
#include <string>
#include "base/memory/weak_ptr.h"
#include "components/drive/service/drive_service_interface.h"
namespace sync_file_system {
namespace drive_backend {
DriveServiceWrapper::DriveServiceWrapper(
drive::DriveServiceInterface* drive_service)
: … { … }
DriveServiceWrapper::~DriveServiceWrapper() = default;
void DriveServiceWrapper::AddNewDirectory(
const std::string& parent_resource_id,
const std::string& directory_title,
const drive::AddNewDirectoryOptions& options,
google_apis::FileResourceCallback callback) { … }
void DriveServiceWrapper::DeleteResource(
const std::string& resource_id,
const std::string& etag,
google_apis::EntryActionCallback callback) { … }
void DriveServiceWrapper::DownloadFile(
const base::FilePath& local_cache_path,
const std::string& resource_id,
google_apis::DownloadActionCallback download_action_callback,
const google_apis::GetContentCallback& get_content_callback,
google_apis::ProgressCallback progress_callback) { … }
void DriveServiceWrapper::GetAboutResource(
google_apis::AboutResourceCallback callback) { … }
void DriveServiceWrapper::GetStartPageToken(
const std::string& team_drive_id,
google_apis::StartPageTokenCallback callback) { … }
void DriveServiceWrapper::GetChangeList(
int64_t start_changestamp,
google_apis::ChangeListCallback callback) { … }
void DriveServiceWrapper::GetChangeListByToken(
const std::string& team_drive_id,
const std::string& start_page_token,
google_apis::ChangeListCallback callback) { … }
void DriveServiceWrapper::GetRemainingChangeList(
const GURL& next_link,
google_apis::ChangeListCallback callback) { … }
void DriveServiceWrapper::GetRemainingTeamDriveList(
const std::string& page_token,
google_apis::TeamDriveListCallback callback) { … }
void DriveServiceWrapper::GetRemainingFileList(
const GURL& next_link,
google_apis::FileListCallback callback) { … }
void DriveServiceWrapper::GetFileResource(
const std::string& resource_id,
google_apis::FileResourceCallback callback) { … }
void DriveServiceWrapper::GetFileListInDirectory(
const std::string& directory_resource_id,
google_apis::FileListCallback callback) { … }
void DriveServiceWrapper::RemoveResourceFromDirectory(
const std::string& parent_resource_id,
const std::string& resource_id,
google_apis::EntryActionCallback callback) { … }
void DriveServiceWrapper::SearchByTitle(
const std::string& title,
const std::string& directory_resource_id,
google_apis::FileListCallback callback) { … }
}
}