#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;
std::optional<PageContext> PageContext::FromWebContents(
content::WebContents* contents) { … }
content::WebContents* PageContext::GetWebContents() const { … }
base::WeakPtr<PageNode> PageContext::GetWeakPageNode() const { … }
PageContext PageContext::FromPageNode(const PageNode* node) { … }
std::optional<PageContext> PageContext::FromWeakPageNode(
base::WeakPtr<PageNode> node) { … }
PageNode* PageContext::GetPageNode() const { … }
std::string PageContext::ToString() const { … }
}