#include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h"
#include <memory>
#include <utility>
#include "base/memory/ref_counted.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/sync_file_system/drive_backend/metadata_database.h"
#include "chrome/browser/sync_file_system/remote_change_processor.h"
#include "chrome/browser/sync_file_system/task_logger.h"
#include "components/drive/drive_uploader.h"
#include "components/drive/service/drive_service_interface.h"
namespace sync_file_system {
namespace drive_backend {
SyncEngineContext::SyncEngineContext(
std::unique_ptr<drive::DriveServiceInterface> drive_service,
std::unique_ptr<drive::DriveUploaderInterface> drive_uploader,
TaskLogger* task_logger,
const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner,
const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner)
: … { … }
SyncEngineContext::~SyncEngineContext() { … }
drive::DriveServiceInterface* SyncEngineContext::GetDriveService() { … }
drive::DriveUploaderInterface* SyncEngineContext::GetDriveUploader() { … }
base::WeakPtr<TaskLogger> SyncEngineContext::GetTaskLogger() { … }
MetadataDatabase* SyncEngineContext::GetMetadataDatabase() { … }
std::unique_ptr<MetadataDatabase> SyncEngineContext::PassMetadataDatabase() { … }
RemoteChangeProcessor* SyncEngineContext::GetRemoteChangeProcessor() { … }
base::SingleThreadTaskRunner* SyncEngineContext::GetUITaskRunner() { … }
base::SequencedTaskRunner* SyncEngineContext::GetWorkerTaskRunner() { … }
void SyncEngineContext::SetMetadataDatabase(
std::unique_ptr<MetadataDatabase> metadata_database) { … }
void SyncEngineContext::SetRemoteChangeProcessor(
RemoteChangeProcessor* remote_change_processor) { … }
void SyncEngineContext::DetachFromSequence() { … }
}
}