#include "content/browser/webid/test/delegated_idp_network_request_manager.h"
namespace content {
DelegatedIdpNetworkRequestManager::DelegatedIdpNetworkRequestManager(
IdpNetworkRequestManager* delegate)
: … { … }
DelegatedIdpNetworkRequestManager::~DelegatedIdpNetworkRequestManager() =
default;
void DelegatedIdpNetworkRequestManager::FetchWellKnown(
const GURL& provider,
FetchWellKnownCallback callback) { … }
void DelegatedIdpNetworkRequestManager::FetchConfig(
const GURL& provider,
blink::mojom::RpMode rp_mode,
int idp_brand_icon_ideal_size,
int idp_brand_icon_minimum_size,
FetchConfigCallback callback) { … }
void DelegatedIdpNetworkRequestManager::FetchClientMetadata(
const GURL& endpoint,
const std::string& client_id,
int rp_brand_icon_ideal_size,
int rp_brand_icon_minimum_size,
FetchClientMetadataCallback callback) { … }
void DelegatedIdpNetworkRequestManager::SendAccountsRequest(
const GURL& accounts_url,
const std::string& client_id,
AccountsRequestCallback callback) { … }
void DelegatedIdpNetworkRequestManager::SendTokenRequest(
const GURL& token_url,
const std::string& account,
const std::string& url_encoded_post_data,
TokenRequestCallback callback,
ContinueOnCallback continue_on,
RecordErrorMetricsCallback record_error_metrics_callback) { … }
void DelegatedIdpNetworkRequestManager::SendSuccessfulTokenRequestMetrics(
const GURL& metrics_endpoint_url,
base::TimeDelta api_call_to_show_dialog_time,
base::TimeDelta show_dialog_to_continue_clicked_time,
base::TimeDelta account_selected_to_token_response_time,
base::TimeDelta api_call_to_token_response_time) { … }
void DelegatedIdpNetworkRequestManager::SendFailedTokenRequestMetrics(
const GURL& metrics_endpoint_url,
MetricsEndpointErrorCode error_code) { … }
void DelegatedIdpNetworkRequestManager::SendLogout(const GURL& logout_url,
LogoutCallback callback) { … }
void DelegatedIdpNetworkRequestManager::SendDisconnectRequest(
const GURL& disconnect_url,
const std::string& account_hint,
const std::string& client_id,
DisconnectCallback callback) { … }
void DelegatedIdpNetworkRequestManager::DownloadAndDecodeImage(
const GURL& url,
ImageCallback callback) { … }
}