#include "components/plus_addresses/affiliations/plus_address_affiliation_match_helper.h"
#include <string>
#include <vector>
#include "base/barrier_callback.h"
#include "base/check_deref.h"
#include "base/metrics/histogram_functions.h"
#include "components/affiliations/core/browser/affiliation_service.h"
#include "components/affiliations/core/browser/affiliation_utils.h"
#include "components/plus_addresses/features.h"
#include "components/plus_addresses/plus_address_service.h"
#include "components/plus_addresses/plus_address_types.h"
namespace plus_addresses {
namespace {
FacetURI;
constexpr char kUmaKeyResponseTime[] = …;
}
PlusAddressAffiliationMatchHelper::PlusAddressAffiliationMatchHelper(
PlusAddressService* plus_address_service,
affiliations::AffiliationService* affiliation_service)
: … { … }
PlusAddressAffiliationMatchHelper::~PlusAddressAffiliationMatchHelper() =
default;
void PlusAddressAffiliationMatchHelper::GetAffiliatedPlusProfiles(
const affiliations::FacetURI& facet,
AffiliatedPlusProfilesCallback result_callback) { … }
void PlusAddressAffiliationMatchHelper::OnPSLExtensionsReceived(
std::vector<std::string> psl_extensions) { … }
void PlusAddressAffiliationMatchHelper::RequestGroupInfo(
AffiliatedPlusProfilesCallback result_callback,
const FacetURI& facet,
base::TimeTicks start_time,
const base::flat_set<std::string>& psl_extensions) { … }
void PlusAddressAffiliationMatchHelper::OnGroupingInfoReceived(
AffiliatedPlusProfilesCallback result_callback,
base::TimeTicks start_time,
const base::flat_set<std::string>& psl_extensions,
const std::vector<affiliations::GroupedFacets>& results) { … }
}