chromium/chrome/browser/ssl/sct_reporting_service.cc

// Copyright 2020 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/ssl/sct_reporting_service.h"

#include "base/feature_list.h"
#include "base/metrics/histogram_functions.h"
#include "base/no_destructor.h"
#include "base/strings/escape.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/net/system_network_context_manager.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "content/public/browser/network_service_instance.h"
#include "content/public/browser/storage_partition.h"
#include "google_apis/google_api_keys.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "services/network/public/mojom/network_service.mojom.h"
#include "third_party/abseil-cpp/absl/utility/utility.h"

constexpr net::NetworkTrafficAnnotationTag kSCTAuditReportTrafficAnnotation =;

constexpr net::NetworkTrafficAnnotationTag kSCTHashdanceTrafficAnnotation =;

constexpr char kSBSCTAuditingReportURL[] =;

constexpr char kHashdanceLookupQueryURL[] =;

// The maximum number of reports currently allowed to be sent by hashdance
// clients, browser-wide. When this limit is reached, no more auditing reports
// will be sent by the client.
// NOTE: If this is changed, then the histogram "Security.SCTAuditing.OptOut.
// ReportCount" that is logged in CanSendSCTAuditingReport() will also need to
// be changed, as it sets its max bucket to `kSCTAuditingHashdanceMaxReports+1`.
constexpr int kSCTAuditingHashdanceMaxReports =;

// static
GURL& SCTReportingService::GetReportURLInstance() {}

// static
GURL& SCTReportingService::GetHashdanceLookupQueryURLInstance() {}

// static
void SCTReportingService::ReconfigureAfterNetworkRestart() {}

// static
bool SCTReportingService::CanSendSCTAuditingReport() {}

// static
void SCTReportingService::OnNewSCTAuditingReportSent() {}

SCTReportingService::SCTReportingService(
    safe_browsing::SafeBrowsingService* safe_browsing_service,
    Profile* profile)
    :{}

SCTReportingService::~SCTReportingService() = default;

network::mojom::SCTAuditingMode SCTReportingService::GetReportingMode() {}

void SCTReportingService::OnPreferenceChanged() {}