#include "components/keep_alive_registry/keep_alive_registry.h"
#include "base/logging.h"
#include "base/observer_list.h"
#include "components/keep_alive_registry/keep_alive_state_observer.h"
#include "components/keep_alive_registry/keep_alive_types.h"
KeepAliveRegistry* KeepAliveRegistry::GetInstance() { … }
bool KeepAliveRegistry::IsKeepingAlive() const { … }
bool KeepAliveRegistry::IsKeepingAliveOnlyByBrowserOrigin() const { … }
bool KeepAliveRegistry::IsRestartAllowed() const { … }
bool KeepAliveRegistry::IsOriginRegistered(KeepAliveOrigin origin) const { … }
void KeepAliveRegistry::AddObserver(KeepAliveStateObserver* observer) { … }
void KeepAliveRegistry::RemoveObserver(KeepAliveStateObserver* observer) { … }
bool KeepAliveRegistry::WouldRestartWithout(
const std::vector<KeepAliveOrigin>& origins) const { … }
bool KeepAliveRegistry::IsShuttingDown() const { … }
void KeepAliveRegistry::SetIsShuttingDown(bool value) { … }
bool KeepAliveRegistry::IsRestarting() const { … }
void KeepAliveRegistry::SetRestarting() { … }
KeepAliveRegistry::KeepAliveRegistry()
: … { … }
KeepAliveRegistry::~KeepAliveRegistry() { … }
void KeepAliveRegistry::Register(KeepAliveOrigin origin,
KeepAliveRestartOption restart) { … }
void KeepAliveRegistry::Unregister(KeepAliveOrigin origin,
KeepAliveRestartOption restart) { … }
void KeepAliveRegistry::OnKeepAliveStateChanged(bool new_keeping_alive) { … }
void KeepAliveRegistry::OnRestartAllowedChanged(bool new_restart_allowed) { … }
void KeepAliveRegistry::DecrementCount(KeepAliveOrigin origin,
OriginMap* keep_alive_map) { … }
std::ostream& operator<<(std::ostream& out, const KeepAliveRegistry& registry) { … }