#include "components/performance_manager/execution_context_priority/max_vote_aggregator.h"
#include <algorithm>
#include <tuple>
#include "base/not_fatal_until.h"
namespace performance_manager {
namespace execution_context_priority {
MaxVoteAggregator::MaxVoteAggregator() = default;
MaxVoteAggregator::~MaxVoteAggregator() = default;
VotingChannel MaxVoteAggregator::GetVotingChannel() { … }
void MaxVoteAggregator::SetUpstreamVotingChannel(VotingChannel channel) { … }
void MaxVoteAggregator::OnVoteSubmitted(
VoterId voter_id,
const ExecutionContext* execution_context,
const Vote& vote) { … }
void MaxVoteAggregator::OnVoteChanged(VoterId voter_id,
const ExecutionContext* execution_context,
const Vote& new_vote) { … }
void MaxVoteAggregator::OnVoteInvalidated(
VoterId voter_id,
const ExecutionContext* execution_context) { … }
MaxVoteAggregator::StampedVote::StampedVote() = default;
MaxVoteAggregator::StampedVote::StampedVote(const Vote& vote, uint32_t vote_id)
: … { … }
MaxVoteAggregator::StampedVote::StampedVote(StampedVote&&) = default;
MaxVoteAggregator::StampedVote::~StampedVote() = default;
MaxVoteAggregator::VoteDataMap::iterator MaxVoteAggregator::GetVoteData(
const ExecutionContext* execution_context) { … }
MaxVoteAggregator::VoteData::VoteData() = default;
MaxVoteAggregator::VoteData::VoteData(VoteData&& rhs) = default;
MaxVoteAggregator::VoteData& MaxVoteAggregator::VoteData::operator=(
VoteData&& rhs) = default;
MaxVoteAggregator::VoteData::~VoteData() = default;
void MaxVoteAggregator::VoteData::AddVote(VoterId voter_id,
const Vote& vote,
uint32_t vote_id) { … }
void MaxVoteAggregator::VoteData::UpdateVote(VoterId voter_id,
const Vote& new_vote) { … }
void MaxVoteAggregator::VoteData::RemoveVote(VoterId voter_id) { … }
const Vote& MaxVoteAggregator::VoteData::GetTopVote() const { … }
}
}