#include "components/aggregation_service/aggregation_coordinator_utils.h"
#include <string_view>
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/containers/contains.h"
#include "base/no_destructor.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_split.h"
#include "components/aggregation_service/features.h"
#include "components/attribution_reporting/is_origin_suitable.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace aggregation_service {
namespace {
std::vector<url::Origin> DefaultOrigins() { … }
std::vector<url::Origin> Parse(std::string_view unparsed) { … }
class CoordinatorOrigins { … };
CoordinatorOrigins& GetCoordinatorOrigins() { … }
}
url::Origin GetDefaultAggregationCoordinatorOrigin() { … }
bool IsAggregationCoordinatorOriginAllowed(const url::Origin& origin) { … }
ScopedAggregationCoordinatorAllowlistForTesting::
ScopedAggregationCoordinatorAllowlistForTesting(
std::vector<url::Origin> origins)
: … { … }
ScopedAggregationCoordinatorAllowlistForTesting::
~ScopedAggregationCoordinatorAllowlistForTesting() { … }
}