#include "remoting/host/setup/daemon_controller.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/message_loop/message_pump_type.h"
#include "base/task/single_thread_task_runner.h"
#include "base/values.h"
#include "build/build_config.h"
#include "remoting/base/auto_thread.h"
#include "remoting/base/auto_thread_task_runner.h"
namespace remoting {
const char kDaemonControllerThreadName[] = …;
DaemonController::DaemonController(std::unique_ptr<Delegate> delegate)
: … { … }
DaemonController::State DaemonController::GetState() { … }
void DaemonController::GetConfig(GetConfigCallback done) { … }
void DaemonController::CheckPermission(bool it2me, BoolCallback callback) { … }
void DaemonController::SetConfigAndStart(base::Value::Dict config,
bool consent,
CompletionCallback done) { … }
void DaemonController::UpdateConfig(base::Value::Dict config,
CompletionCallback done) { … }
void DaemonController::Stop(CompletionCallback done) { … }
void DaemonController::GetUsageStatsConsent(GetUsageStatsConsentCallback done) { … }
DaemonController::~DaemonController() { … }
void DaemonController::DoGetConfig(GetConfigCallback done) { … }
void DaemonController::DoSetConfigAndStart(base::Value::Dict config,
bool consent,
CompletionCallback done) { … }
void DaemonController::DoUpdateConfig(base::Value::Dict config,
CompletionCallback done) { … }
void DaemonController::DoStop(CompletionCallback done) { … }
void DaemonController::DoGetUsageStatsConsent(
GetUsageStatsConsentCallback done) { … }
void DaemonController::InvokeCompletionCallbackAndScheduleNext(
CompletionCallback done,
AsyncResult result) { … }
void DaemonController::InvokeConfigCallbackAndScheduleNext(
GetConfigCallback done,
std::optional<base::Value::Dict> config) { … }
void DaemonController::InvokeConsentCallbackAndScheduleNext(
GetUsageStatsConsentCallback done,
const UsageStatsConsent& consent) { … }
void DaemonController::OnServicingDone() { … }
void DaemonController::ServiceOrQueueRequest(base::OnceClosure request) { … }
void DaemonController::ServiceNextRequest() { … }
}