chromium/components/performance_manager/resource_attribution/worker_context.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/performance_manager/public/resource_attribution/worker_context.h"

#include <optional>
#include <utility>

#include "base/check.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/strcat.h"
#include "components/performance_manager/graph/worker_node_impl.h"
#include "components/performance_manager/public/graph/graph.h"
#include "components/performance_manager/public/performance_manager.h"
#include "components/performance_manager/resource_attribution/performance_manager_aliases.h"
#include "content/public/browser/browser_thread.h"
#include "third_party/blink/public/common/tokens/tokens.h"

namespace resource_attribution {

WorkerContext::WorkerContext(const blink::WorkerToken& token,
                             base::WeakPtr<WorkerNode> weak_node)
    :{}

WorkerContext::~WorkerContext() = default;

WorkerContext::WorkerContext(const WorkerContext& other) = default;

WorkerContext& WorkerContext::operator=(const WorkerContext& other) = default;

WorkerContext::WorkerContext(WorkerContext&& other) = default;

WorkerContext& WorkerContext::operator=(WorkerContext&& other) = default;

// static
std::optional<WorkerContext> WorkerContext::FromWorkerToken(
    const blink::WorkerToken& token) {}

blink::WorkerToken WorkerContext::GetWorkerToken() const {}

base::WeakPtr<WorkerNode> WorkerContext::GetWeakWorkerNode() const {}

// static
WorkerContext WorkerContext::FromWorkerNode(const WorkerNode* node) {}

// static
std::optional<WorkerContext> WorkerContext::FromWeakWorkerNode(
    base::WeakPtr<WorkerNode> node) {}

WorkerNode* WorkerContext::GetWorkerNode() const {}

std::string WorkerContext::ToString() const {}

}  // namespace resource_attribution