#include "components/memory_pressure/system_memory_pressure_evaluator.h"
#include <memory>
#include <utility>
#include "base/feature_list.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#if BUILDFLAG(IS_FUCHSIA)
#include "components/memory_pressure/system_memory_pressure_evaluator_fuchsia.h"
#elif BUILDFLAG(IS_APPLE)
#include "components/memory_pressure/system_memory_pressure_evaluator_mac.h"
#elif BUILDFLAG(IS_WIN)
#include "components/memory_pressure/system_memory_pressure_evaluator_win.h"
#endif
namespace memory_pressure {
#if BUILDFLAG(IS_WIN)
BASE_FEATURE(kUseWinOSMemoryPressureSignals,
"UseWinOSMemoryPressureSignals",
base::FEATURE_DISABLED_BY_DEFAULT);
#endif
const base::TimeDelta SystemMemoryPressureEvaluator::kRenotifyVotePeriod = …;
std::unique_ptr<SystemMemoryPressureEvaluator>
SystemMemoryPressureEvaluator::CreateDefaultSystemEvaluator(
MultiSourceMemoryPressureMonitor* monitor) { … }
SystemMemoryPressureEvaluator::SystemMemoryPressureEvaluator(
std::unique_ptr<MemoryPressureVoter> voter)
: … { … }
SystemMemoryPressureEvaluator::~SystemMemoryPressureEvaluator() = default;
void SystemMemoryPressureEvaluator::SetCurrentVote(
base::MemoryPressureListener::MemoryPressureLevel level) { … }
void SystemMemoryPressureEvaluator::SendCurrentVote(bool notify) const { … }
}