chromium/chrome/browser/page_info/about_this_site_tab_helper.cc

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

#include "chrome/browser/page_info/about_this_site_tab_helper.h"

#include <optional>

#include "base/metrics/histogram_functions.h"
#include "build/build_config.h"
#include "chrome/browser/page_info/page_info_features.h"
#include "components/optimization_guide/core/optimization_guide_decider.h"
#include "components/optimization_guide/core/optimization_guide_decision.h"
#include "components/optimization_guide/core/optimization_metadata.h"
#include "components/optimization_guide/proto/hints.pb.h"
#include "components/page_info/core/about_this_site_validation.h"
#include "components/page_info/core/proto/about_this_site_metadata.pb.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/browser/web_contents.h"
#include "net/base/url_util.h"

#if defined(TOOLKIT_VIEWS)
#include "chrome/browser/ui/page_info/about_this_site_side_panel.h"
#endif

AboutThisSiteStatus;
ValidateMetadata;
AboutThisSiteMetadata;

AboutThisSiteTabHelper::AboutThisSiteTabHelper(
    content::WebContents* web_contents,
    optimization_guide::OptimizationGuideDecider* optimization_guide_decider)
    :{}

AboutThisSiteTabHelper::~AboutThisSiteTabHelper() = default;

page_info::AboutThisSiteService::DecisionAndMetadata
AboutThisSiteTabHelper::GetAboutThisSiteMetadata() const {}

void AboutThisSiteTabHelper::PrimaryPageChanged(content::Page& page) {}

void AboutThisSiteTabHelper::OnOptimizationGuideDecision(
    const GURL& main_frame_url,
    optimization_guide::OptimizationGuideDecision decision,
    const optimization_guide::OptimizationMetadata& metadata) {}

WEB_CONTENTS_USER_DATA_KEY_IMPL(AboutThisSiteTabHelper);