#include "remoting/host/zombie_host_detector.h"
#include "base/check.h"
#include "base/logging.h"
#include "net/base/network_change_notifier.h"
namespace {
bool IsMaxDurationExceeded(base::TimeTicks event_time,
base::TimeDelta max_duration,
const std::string& event_name) { … }
}
namespace remoting {
constexpr base::TimeDelta ZombieHostDetector::kZombieStateDetectionInterval;
constexpr base::TimeDelta ZombieHostDetector::kMaxHeartbeatInterval;
constexpr base::TimeDelta ZombieHostDetector::kMaxSignalingActiveInterval;
ZombieHostDetector::ZombieHostDetector(
base::OnceClosure on_zombie_state_detected) { … }
ZombieHostDetector::~ZombieHostDetector() = default;
void ZombieHostDetector::Start() { … }
void ZombieHostDetector::OnHeartbeatSent() { … }
void ZombieHostDetector::OnSignalingActive() { … }
base::TimeTicks ZombieHostDetector::GetNextDetectionTime() const { … }
void ZombieHostDetector::CheckZombieState() { … }
}