chromium/components/webapps/browser/installable/metrics/site_quality_metrics_task.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/webapps/browser/installable/metrics/site_quality_metrics_task.h"

#include <memory>
#include <vector>

#include "base/barrier_closure.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/task/sequenced_task_runner.h"
#include "content/public/browser/service_worker_context.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/storage_usage_info.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "storage/browser/quota/quota_manager.h"
#include "storage/browser/quota/quota_manager_impl.h"
#include "storage/browser/quota/quota_manager_proxy.h"
#include "third_party/blink/public/mojom/favicon/favicon_url.mojom.h"
#include "third_party/blink/public/mojom/quota/quota_types.mojom.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace webapps {

SiteQualityMetricsTask::~SiteQualityMetricsTask() = default;

// static
std::unique_ptr<SiteQualityMetricsTask> SiteQualityMetricsTask::CreateAndStart(
    const GURL& site_url,
    content::WebContents& web_contents,
    content::StoragePartition& storage_partition,
    content::ServiceWorkerContext& service_worker_context,
    scoped_refptr<base::SequencedTaskRunner> task_runner,
    ResultCallback on_complete) {}

SiteQualityMetricsTask::SiteQualityMetricsTask(
    const GURL& site_url,
    content::WebContents& web_contents,
    content::StoragePartition& storage_partition,
    content::ServiceWorkerContext& service_worker_context,
    scoped_refptr<base::SequencedTaskRunner> task_runner,
    ResultCallback on_complete)
    :{}

void SiteQualityMetricsTask::Start() {}

void SiteQualityMetricsTask::OnQuotaUsageRetrieved(
    int64_t usage,
    blink::mojom::UsageBreakdownPtr usage_breakdown) {}

void SiteQualityMetricsTask::OnDidCheckHasServiceWorker(
    content::ServiceWorkerCapability capability) {}

void SiteQualityMetricsTask::ReportResultAndSelfDestruct() {}

}  // namespace webapps