#include "components/performance_manager/public/graph/node_attached_data.h"
#include <utility>
#include "components/performance_manager/graph/frame_node_impl.h"
#include "components/performance_manager/graph/node_attached_data_storage.h"
#include "components/performance_manager/graph/node_base.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"
#include "components/performance_manager/public/graph/node.h"
namespace performance_manager {
namespace {
template <class NodeClassImpl>
NodeAttachedDataStorage& GetStorageImpl(NodeClassImpl* node) { … }
NodeAttachedDataStorage& GetStorage(const Node* node) { … }
}
NodeAttachedData::NodeAttachedData() = default;
NodeAttachedData::~NodeAttachedData() = default;
void NodeAttachedDataMapHelper::AttachInMap(
const Node* node,
std::unique_ptr<NodeAttachedData> data) { … }
NodeAttachedData* NodeAttachedDataMapHelper::GetFromMap(const Node* node,
const void* key) { … }
std::unique_ptr<NodeAttachedData> NodeAttachedDataMapHelper::DetachFromMap(
const Node* node,
const void* key) { … }
}