chromium/components/memory_pressure/memory_pressure_voter.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/memory_pressure_voter.h"

#include <numeric>
#include <optional>

#include "base/memory/raw_ptr.h"
#include "base/trace_event/base_tracing.h"

namespace memory_pressure {

class MemoryPressureVoterImpl : public MemoryPressureVoter {};

MemoryPressureVoteAggregator::MemoryPressureVoteAggregator(Delegate* delegate)
    :{}

MemoryPressureVoteAggregator::~MemoryPressureVoteAggregator() {}

std::unique_ptr<MemoryPressureVoter>
MemoryPressureVoteAggregator::CreateVoter() {}

void MemoryPressureVoteAggregator::OnVoteForTesting(
    std::optional<MemoryPressureLevel> old_vote,
    std::optional<MemoryPressureLevel> new_vote) {}

void MemoryPressureVoteAggregator::NotifyListenersForTesting() {}

base::MemoryPressureListener::MemoryPressureLevel
MemoryPressureVoteAggregator::EvaluateVotesForTesting() {}

void MemoryPressureVoteAggregator::OnVote(
    std::optional<MemoryPressureLevel> old_vote,
    std::optional<MemoryPressureLevel> new_vote) {}

void MemoryPressureVoteAggregator::NotifyListeners() {}

base::MemoryPressureListener::MemoryPressureLevel
MemoryPressureVoteAggregator::EvaluateVotes() const {}

void MemoryPressureVoteAggregator::SetVotesForTesting(size_t none_votes,
                                                      size_t moderate_votes,
                                                      size_t critical_votes) {}

}  // namespace memory_pressure