chromium/components/performance_manager/execution_context_priority/inherit_parent_priority_voter.cc

// Copyright 2024 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/performance_manager/execution_context_priority/inherit_parent_priority_voter.h"

#include <optional>
#include <utility>

#include "base/task/task_traits.h"
#include "components/performance_manager/public/execution_context/execution_context_registry.h"
#include "components/performance_manager/public/graph/graph.h"

namespace performance_manager::execution_context_priority {

namespace {

const execution_context::ExecutionContext* GetExecutionContext(
    const FrameNode* frame_node) {}

// Returns the priority that should be used to cast a vote for `frame_node`,
// which is basically the parent's priority. Returns std::nullopt when no vote
// should be cast.
std::optional<base::TaskPriority> GetVotePriority(const FrameNode* frame_node) {}

std::optional<Vote> GetVote(const FrameNode* frame_node) {}

}  // namespace

// static
const char InheritParentPriorityVoter::kPriorityInheritedReason[] =;

InheritParentPriorityVoter::InheritParentPriorityVoter(
    VotingChannel voting_channel)
    :{}

InheritParentPriorityVoter::~InheritParentPriorityVoter() = default;

void InheritParentPriorityVoter::InitializeOnGraph(Graph* graph) {}

void InheritParentPriorityVoter::TearDownOnGraph(Graph* graph) {}

void InheritParentPriorityVoter::OnFrameNodeInitializing(
    const FrameNode* frame_node) {}

void InheritParentPriorityVoter::OnFrameNodeTearingDown(
    const FrameNode* frame_node) {}

void InheritParentPriorityVoter::OnIsAdFrameChanged(
    const FrameNode* frame_node) {}

void InheritParentPriorityVoter::OnPriorityAndReasonChanged(
    const FrameNode* frame_node,
    const PriorityAndReason& previous_value) {}

}  // namespace performance_manager::execution_context_priority