chromium/components/browsing_data/core/browsing_data_utils.cc

// Copyright 2016 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/browsing_data/core/browsing_data_utils.h"

#include <optional>
#include <string>
#include <vector>

#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
#include "base/no_destructor.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "components/browsing_data/core/counters/autofill_counter.h"
#include "components/browsing_data/core/counters/history_counter.h"
#include "components/browsing_data/core/counters/passwords_counter.h"
#include "components/browsing_data/core/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"

namespace browsing_data {

// Creates a string like "for a.com, b.com, and 4 more".
std::u16string CreateDomainExamples(
    int password_count,
    const std::vector<std::string> domain_examples) {}

base::Time CalculateBeginDeleteTime(TimePeriod time_period) {}

base::Time CalculateEndDeleteTime(TimePeriod time_period) {}

void RecordDeletionForPeriod(TimePeriod period) {}

void RecordTimePeriodChange(TimePeriod period) {}

void RecordDeleteBrowsingDataAction(DeleteBrowsingDataAction cbd_action) {}

std::u16string GetCounterTextFromResult(
    const BrowsingDataCounter::Result* result) {}

const char* GetTimePeriodPreferenceName(
    ClearBrowsingDataTab clear_browsing_data_tab) {}

bool GetDeletionPreferenceFromDataType(
    BrowsingDataType data_type,
    ClearBrowsingDataTab clear_browsing_data_tab,
    std::string* out_pref) {}

std::optional<BrowsingDataType> GetDataTypeFromDeletionPreference(
    const std::string& pref_name) {}

bool IsHttpsCookieSourceScheme(net::CookieSourceScheme cookie_source_scheme) {}

}  // namespace browsing_data