#include "chrome/updater/ipc/update_service_internal_proxy.h"
#include <optional>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#if BUILDFLAG(IS_POSIX)
#include "chrome/updater/ipc/update_service_internal_proxy_posix.h"
#elif BUILDFLAG(IS_WIN)
#include "chrome/updater/ipc/update_service_internal_proxy_win.h"
#endif
namespace updater {
namespace {
bool CanRetry(int try_count) { … }
}
UpdateServiceInternalProxy::UpdateServiceInternalProxy(
scoped_refptr<UpdateServiceInternalProxyImpl> proxy)
: … { … }
UpdateServiceInternalProxy::~UpdateServiceInternalProxy() = default;
void UpdateServiceInternalProxy::Run(base::OnceClosure callback) { … }
void UpdateServiceInternalProxy::Hello(base::OnceClosure callback) { … }
void UpdateServiceInternalProxy::RunDone(base::OnceClosure callback,
int try_count,
std::optional<RpcError> error) { … }
void UpdateServiceInternalProxy::HelloDone(base::OnceClosure callback,
int try_count,
std::optional<RpcError> error) { … }
}