chromium/components/performance_manager/execution_context_priority/loading_page_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/loading_page_voter.h"

#include <utility>

#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 true if `loading_state` represent an actively loading state.
bool IsLoading(PageNode::LoadingState loading_state) {}

}  // namespace

// static
const char LoadingPageVoter::kPageIsLoadingReason[] =;

LoadingPageVoter::LoadingPageVoter(VotingChannel voting_channel)
    :{}

LoadingPageVoter::~LoadingPageVoter() = default;

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

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

void LoadingPageVoter::OnPageNodeAdded(const PageNode* page_node) {}

void LoadingPageVoter::OnBeforePageNodeRemoved(const PageNode* page_node) {}

void LoadingPageVoter::OnLoadingStateChanged(
    const PageNode* page_node,
    PageNode::LoadingState previous_state) {}

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

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

void LoadingPageVoter::OnPageNodeStartedLoading(const PageNode* page_node) {}

void LoadingPageVoter::OnPageNodeStoppedLoading(const PageNode* page_node) {}

void LoadingPageVoter::SubmitVoteForSubtree(const FrameNode* frame_node) {}

void LoadingPageVoter::InvalidateVoteForSubtree(const FrameNode* frame_node) {}

}  // namespace performance_manager::execution_context_priority