#include "components/performance_manager/v8_memory/v8_context_tracker_helpers.h"
#include "base/check.h"
#include "base/notreached.h"
#include "components/performance_manager/graph/frame_node_impl.h"
#include "components/performance_manager/graph/process_node_impl.h"
#include "components/performance_manager/public/execution_context/execution_context.h"
#include "components/performance_manager/public/execution_context/execution_context_registry.h"
#include "components/performance_manager/public/mojom/v8_contexts.mojom.h"
namespace performance_manager {
namespace v8_memory {
namespace {
bool IsSynchronousIframeAttributionDataExpected(
const execution_context::ExecutionContext* ec) { … }
}
bool HasCrossProcessParent(const FrameNode* frame_node) { … }
bool IsValidExtensionId(const std::string& s) { … }
bool IsWorkletToken(const blink::ExecutionContextToken& token) { … }
bool IsWorkerToken(const blink::ExecutionContextToken& token) { … }
const execution_context::ExecutionContext* GetExecutionContext(
const blink::ExecutionContextToken& token,
Graph* graph) { … }
V8ContextDescriptionStatus ValidateV8ContextDescription(
const mojom::V8ContextDescription& description) { … }
std::optional<bool> ExpectIframeAttributionDataForV8ContextDescription(
const mojom::V8ContextDescription& description,
Graph* graph) { … }
void MarkedObjectCount::Mark() { … }
void MarkedObjectCount::Decrement(bool marked) { … }
}
}