#include "chrome/browser/sync_file_system/drive_backend/remote_change_processor_on_worker.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/weak_ptr.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/sync_file_system/drive_backend/callback_helper.h"
#include "chrome/browser/sync_file_system/drive_backend/remote_change_processor_wrapper.h"
#include "chrome/browser/sync_file_system/file_change.h"
#include "chrome/browser/sync_file_system/sync_file_metadata.h"
namespace sync_file_system {
namespace drive_backend {
RemoteChangeProcessorOnWorker::RemoteChangeProcessorOnWorker(
const base::WeakPtr<RemoteChangeProcessorWrapper>& wrapper,
base::SingleThreadTaskRunner* ui_task_runner,
base::SequencedTaskRunner* worker_task_runner)
: … { … }
RemoteChangeProcessorOnWorker::~RemoteChangeProcessorOnWorker() { … }
void RemoteChangeProcessorOnWorker::PrepareForProcessRemoteChange(
const storage::FileSystemURL& url,
PrepareChangeCallback callback) { … }
void RemoteChangeProcessorOnWorker::ApplyRemoteChange(
const FileChange& change,
const base::FilePath& local_path,
const storage::FileSystemURL& url,
SyncStatusCallback callback) { … }
void RemoteChangeProcessorOnWorker::FinalizeRemoteSync(
const storage::FileSystemURL& url,
bool clear_local_changes,
base::OnceClosure completion_callback) { … }
void RemoteChangeProcessorOnWorker::RecordFakeLocalChange(
const storage::FileSystemURL& url,
const FileChange& change,
SyncStatusCallback callback) { … }
void RemoteChangeProcessorOnWorker::DetachFromSequence() { … }
}
}