#include "components/performance_manager/decorators/page_aggregator.h"
#include <cstdint>
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/public/graph/frame_node.h"
#include "components/performance_manager/public/graph/node_data_describer_registry.h"
#include "components/performance_manager/public/mojom/coordination_unit.mojom.h"
namespace performance_manager {
namespace {
const char kDescriberName[] = …;
PageAggregatorData& GetOrCreateData(PageNodeImpl* page_node) { … }
const PageNode* GetPageNodeFromEither(const FrameNode* frame_node1,
const FrameNode* frame_node2) { … }
}
PageAggregator::PageAggregator() = default;
PageAggregator::~PageAggregator() = default;
void PageAggregator::OnFrameNodeAdded(const FrameNode* frame_node) { … }
void PageAggregator::OnBeforeFrameNodeRemoved(const FrameNode* frame_node) { … }
void PageAggregator::OnCurrentFrameChanged(
const FrameNode* previous_frame_node,
const FrameNode* current_frame_node) { … }
void PageAggregator::OnFrameIsHoldingWebLockChanged(
const FrameNode* frame_node) { … }
void PageAggregator::OnFrameIsHoldingIndexedDBLockChanged(
const FrameNode* frame_node) { … }
void PageAggregator::OnFrameUsesWebRTCChanged(const FrameNode* frame_node) { … }
void PageAggregator::OnHadFormInteractionChanged(const FrameNode* frame_node) { … }
void PageAggregator::OnHadUserEditsChanged(const FrameNode* frame_node) { … }
void PageAggregator::OnPassedToGraph(Graph* graph) { … }
void PageAggregator::OnTakenFromGraph(Graph* graph) { … }
base::Value::Dict PageAggregator::DescribePageNodeData(
const PageNode* node) const { … }
}