#include "content/public/browser/identity_request_dialog_controller.h"
#include <memory>
#include <optional>
#include "content/public/browser/web_contents.h"
namespace content {
ClientMetadata::ClientMetadata(const GURL& terms_of_service_url,
const GURL& privacy_policy_url,
const GURL& brand_icon_url)
: … { … }
ClientMetadata::ClientMetadata(const ClientMetadata& other) = default;
ClientMetadata::~ClientMetadata() = default;
IdentityProviderMetadata::IdentityProviderMetadata() = default;
IdentityProviderMetadata::~IdentityProviderMetadata() = default;
IdentityProviderMetadata::IdentityProviderMetadata(
const IdentityProviderMetadata& other) = default;
IdentityProviderData::IdentityProviderData(
const std::string& idp_for_display,
const std::vector<IdentityRequestAccount>& accounts,
const IdentityProviderMetadata& idp_metadata,
const ClientMetadata& client_metadata,
blink::mojom::RpContext rp_context,
bool request_permission,
bool has_login_status_mismatch)
: … { … }
IdentityProviderData::IdentityProviderData(const IdentityProviderData& other) =
default;
IdentityProviderData::~IdentityProviderData() = default;
int IdentityRequestDialogController::GetBrandIconIdealSize(
blink::mojom::RpMode rp_mode) { … }
int IdentityRequestDialogController::GetBrandIconMinimumSize(
blink::mojom::RpMode rp_mode) { … }
void IdentityRequestDialogController::SetIsInterceptionEnabled(bool enabled) { … }
bool IdentityRequestDialogController::ShowAccountsDialog(
const std::string& rp_for_display,
const std::vector<IdentityProviderData>& identity_provider_data,
IdentityRequestAccount::SignInMode sign_in_mode,
blink::mojom::RpMode rp_mode,
const std::optional<content::IdentityProviderData>& new_account_idp,
AccountSelectionCallback on_selected,
LoginToIdPCallback on_add_account,
DismissCallback dismiss_callback,
AccountsDisplayedCallback accounts_displayed_callback) { … }
bool IdentityRequestDialogController::ShowFailureDialog(
const std::string& rp_for_display,
const std::string& idp_for_display,
blink::mojom::RpContext rp_context,
blink::mojom::RpMode rp_mode,
const IdentityProviderMetadata& idp_metadata,
DismissCallback dismiss_callback,
LoginToIdPCallback login_callback) { … }
bool IdentityRequestDialogController::ShowErrorDialog(
const std::string& rp_for_display,
const std::string& idp_for_display,
blink::mojom::RpContext rp_context,
blink::mojom::RpMode rp_mode,
const IdentityProviderMetadata& idp_metadata,
const std::optional<IdentityCredentialTokenError>& error,
DismissCallback dismiss_callback,
MoreDetailsCallback more_details_callback) { … }
bool IdentityRequestDialogController::ShowLoadingDialog(
const std::string& rp_for_display,
const std::string& idp_for_display,
blink::mojom::RpContext rp_context,
blink::mojom::RpMode rp_mode,
DismissCallback dismiss_callback) { … }
std::string IdentityRequestDialogController::GetTitle() const { … }
std::optional<std::string> IdentityRequestDialogController::GetSubtitle()
const { … }
void IdentityRequestDialogController::ShowUrl(LinkType type, const GURL& url) { … }
WebContents* IdentityRequestDialogController::ShowModalDialog(
const GURL& url,
blink::mojom::RpMode rp_mode,
DismissCallback dismiss_callback) { … }
void IdentityRequestDialogController::CloseModalDialog() { … }
WebContents* IdentityRequestDialogController::GetRpWebContents() { … }
void IdentityRequestDialogController::RequestIdPRegistrationPermision(
const url::Origin& origin,
base::OnceCallback<void(bool accepted)> callback) { … }
}