#include "content/browser/webid/federated_provider_fetcher.h"
#include "base/check.h"
#include "content/browser/webid/flags.h"
#include "content/browser/webid/webid_utils.h"
namespace content {
namespace {
static constexpr size_t kMaxProvidersInWellKnownFile = …;
void SetError(FederatedProviderFetcher::FetchResult& fetch_result,
blink::mojom::FederatedAuthRequestResult result,
content::FedCmRequestIdTokenStatus token_status,
std::optional<std::string> additional_console_error_message) { … }
}
FederatedAuthRequestResult;
TokenStatus;
FederatedProviderFetcher::FetchError::FetchError(const FetchError&) = default;
FederatedProviderFetcher::FetchError::FetchError(
blink::mojom::FederatedAuthRequestResult result,
FedCmRequestIdTokenStatus token_status,
std::optional<std::string> additional_console_error_message)
: … { … }
FederatedProviderFetcher::FetchError::~FetchError() = default;
FederatedProviderFetcher::FetchResult::FetchResult() = default;
FederatedProviderFetcher::FetchResult::FetchResult(const FetchResult&) =
default;
FederatedProviderFetcher::FetchResult::~FetchResult() = default;
FederatedProviderFetcher::FederatedProviderFetcher(
RenderFrameHost& render_frame_host,
IdpNetworkRequestManager* network_manager)
: … { … }
FederatedProviderFetcher::~FederatedProviderFetcher() = default;
void FederatedProviderFetcher::Start(
const std::set<GURL>& identity_provider_config_urls,
blink::mojom::RpMode rp_mode,
int icon_ideal_size,
int icon_minimum_size,
RequesterCallback callback) { … }
void FederatedProviderFetcher::OnWellKnownFetched(
FetchResult& fetch_result,
IdpNetworkRequestManager::FetchStatus status,
const IdpNetworkRequestManager::WellKnown& well_known) { … }
void FederatedProviderFetcher::OnConfigFetched(
FetchResult& fetch_result,
IdpNetworkRequestManager::FetchStatus status,
IdpNetworkRequestManager::Endpoints endpoints,
IdentityProviderMetadata idp_metadata) { … }
void FederatedProviderFetcher::OnError(
FetchResult& fetch_result,
blink::mojom::FederatedAuthRequestResult result,
content::FedCmRequestIdTokenStatus token_status,
std::optional<std::string> additional_console_error_message) { … }
void FederatedProviderFetcher::ValidateAndMaybeSetError(FetchResult& result) { … }
void FederatedProviderFetcher::RunCallbackIfDone() { … }
bool FederatedProviderFetcher::ShouldSkipWellKnownEnforcementForIdp(
const GURL& idp_url) { … }
}