#include "components/performance_manager/execution_context_priority/frame_capturing_media_stream_voter.h"
#include <utility>
#include "components/performance_manager/public/execution_context/execution_context.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) { … }
Vote GetVote(bool is_capturing_media_stream) { … }
}
const char FrameCapturingMediaStreamVoter::kFrameCapturingMediaStreamReason[] = …;
FrameCapturingMediaStreamVoter::FrameCapturingMediaStreamVoter(
VotingChannel voting_channel)
: … { … }
FrameCapturingMediaStreamVoter::~FrameCapturingMediaStreamVoter() = default;
void FrameCapturingMediaStreamVoter::InitializeOnGraph(Graph* graph) { … }
void FrameCapturingMediaStreamVoter::TearDownOnGraph(Graph* graph) { … }
void FrameCapturingMediaStreamVoter::OnFrameNodeInitializing(
const FrameNode* frame_node) { … }
void FrameCapturingMediaStreamVoter::OnFrameNodeTearingDown(
const FrameNode* frame_node) { … }
void FrameCapturingMediaStreamVoter::OnIsCapturingMediaStreamChanged(
const FrameNode* frame_node) { … }
}