chromium/components/performance_manager/resource_attribution/page_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/page_context.h"

#include <utility>

#include "base/check.h"
#include "base/strings/strcat.h"
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/performance_manager_tab_helper.h"
#include "components/performance_manager/public/graph/graph.h"
#include "components/performance_manager/resource_attribution/performance_manager_aliases.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents.h"

namespace resource_attribution {

PerformanceManagerTabHelper;

PageContext::PageContext(base::UnguessableToken token,
                         base::WeakPtr<content::WebContents> weak_web_contents,
                         base::WeakPtr<PageNode> weak_node)
    :{}

PageContext::~PageContext() = default;

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

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

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

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

// static
std::optional<PageContext> PageContext::FromWebContents(
    content::WebContents* contents) {}

content::WebContents* PageContext::GetWebContents() const {}

base::WeakPtr<PageNode> PageContext::GetWeakPageNode() const {}

// static
PageContext PageContext::FromPageNode(const PageNode* node) {}

// static
std::optional<PageContext> PageContext::FromWeakPageNode(
    base::WeakPtr<PageNode> node) {}

PageNode* PageContext::GetPageNode() const {}

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

}  // namespace resource_attribution