chromium/components/memory_pressure/system_memory_pressure_evaluator.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;

// static
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 {}

}  // namespace memory_pressure