#include "chrome/browser/sync_file_system/sync_process_runner.h"
#include <memory>
#include <utility>
#include "base/format_macros.h"
#include "base/functional/bind.h"
#include "chrome/browser/sync_file_system/logger.h"
namespace sync_file_system {
const int64_t SyncProcessRunner::kSyncDelayInMilliseconds = …;
const int64_t SyncProcessRunner::kSyncDelayWithSyncError = …;
const int64_t SyncProcessRunner::kSyncDelayFastInMilliseconds = …;
const int SyncProcessRunner::kPendingChangeThresholdForFastSync = …;
const int64_t SyncProcessRunner::kSyncDelaySlowInMilliseconds = …;
const int64_t SyncProcessRunner::kSyncDelayMaxInMilliseconds = …;
namespace {
class BaseTimerHelper : public SyncProcessRunner::TimerHelper { … };
bool WasSuccessfulSync(SyncStatusCode status) { … }
}
SyncProcessRunner::SyncProcessRunner(const std::string& name,
Client* client,
std::unique_ptr<TimerHelper> timer_helper,
size_t max_parallel_task)
: … { … }
SyncProcessRunner::~SyncProcessRunner() { … }
void SyncProcessRunner::Schedule() { … }
void SyncProcessRunner::ThrottleSync(int64_t base_delay) { … }
void SyncProcessRunner::ResetOldThrottling() { … }
void SyncProcessRunner::ResetThrottling() { … }
SyncServiceState SyncProcessRunner::GetServiceState() { … }
void SyncProcessRunner::OnChangesUpdated(int64_t pending_changes) { … }
SyncFileSystemService* SyncProcessRunner::GetSyncService() { … }
void SyncProcessRunner::Finished(const base::TimeTicks& start_time,
SyncStatusCode status) { … }
void SyncProcessRunner::Run() { … }
void SyncProcessRunner::ScheduleInternal(int64_t delay) { … }
void SyncProcessRunner::CheckIfIdle() { … }
}