#include "chrome/browser/sync_file_system/drive_backend/folder_creator.h"
#include <stddef.h>
#include <utility>
#include "base/functional/bind.h"
#include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h"
#include "chrome/browser/sync_file_system/drive_backend/metadata_database.h"
#include "components/drive/drive_api_util.h"
#include "components/drive/service/drive_service_interface.h"
#include "google_apis/drive/drive_api_parser.h"
namespace drive {
class DriveServiceInterface;
class DriveUploaderInterface;
}
namespace sync_file_system {
namespace drive_backend {
FolderCreator::FolderCreator(drive::DriveServiceInterface* drive_service,
MetadataDatabase* metadata_database,
const std::string& parent_folder_id,
const std::string& title)
: … { … }
FolderCreator::~FolderCreator() = default;
void FolderCreator::Run(FileIDCallback callback) { … }
void FolderCreator::DidCreateFolder(
FileIDCallback callback,
google_apis::ApiErrorCode error,
std::unique_ptr<google_apis::FileResource> entry) { … }
void FolderCreator::DidListFolders(
FileIDCallback callback,
std::vector<std::unique_ptr<google_apis::FileResource>> candidates,
google_apis::ApiErrorCode error,
std::unique_ptr<google_apis::FileList> file_list) { … }
}
}