#include "components/performance_manager/graph/graph_impl_operations.h"
#include <set>
#include "base/memory/raw_ptr.h"
#include "components/performance_manager/graph/frame_node_impl.h"
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/graph/process_node_impl.h"
#include "components/performance_manager/graph/worker_node_impl.h"
namespace performance_manager {
namespace {
bool VisitWorkerClientFrames(
const WorkerNodeImpl* worker,
GraphImplOperations::FrameNodeImplVisitor frame_visitor,
std::set<const FrameNodeImpl*>& visited_frames) { … }
bool VisitWorkerAndClients(
WorkerNodeImpl* worker,
GraphImplOperations::FrameNodeImplVisitor frame_visitor,
GraphImplOperations::WorkerNodeImplVisitor worker_visitor,
std::set<const FrameNodeImpl*>& visited_frames,
std::set<const WorkerNodeImpl*>& visited_workers) { … }
}
base::flat_set<raw_ptr<PageNodeImpl, CtnExperimental>>
GraphImplOperations::GetAssociatedPageNodes(const ProcessNodeImpl* process) { … }
base::flat_set<raw_ptr<ProcessNodeImpl, CtnExperimental>>
GraphImplOperations::GetAssociatedProcessNodes(const PageNodeImpl* page) { … }
std::vector<FrameNodeImpl*> GraphImplOperations::GetFrameNodes(
const PageNodeImpl* page) { … }
bool GraphImplOperations::VisitFrameAndChildrenPreOrder(
FrameNodeImpl* frame,
GraphImplOperations::FrameNodeImplVisitor visitor) { … }
bool GraphImplOperations::VisitFrameAndChildrenPostOrder(
FrameNodeImpl* frame,
GraphImplOperations::FrameNodeImplVisitor visitor) { … }
bool GraphImplOperations::VisitFrameTreePreOrder(const PageNodeImpl* page,
FrameNodeImplVisitor visitor) { … }
bool GraphImplOperations::VisitFrameTreePostOrder(
const PageNodeImpl* page,
FrameNodeImplVisitor visitor) { … }
bool GraphImplOperations::VisitPageAndEmbedsPreOrder(
PageNodeImpl* page,
PageNodeImplVisitor visitor) { … }
bool GraphImplOperations::HasFrame(const PageNodeImpl* page,
FrameNodeImpl* frame) { … }
bool GraphImplOperations::VisitAllWorkerClients(
const WorkerNodeImpl* worker,
FrameNodeImplVisitor frame_visitor,
WorkerNodeImplVisitor worker_visitor) { … }
}