void AuthenticationManager::didReceiveAuthenticationChallenge(Download* download, const AuthenticationChallenge& authenticationChallenge) { uint64_t challengeID = generateAuthenticationChallengeID(); m_challenges.set(challengeID, authenticationChallenge); download->send(Messages::DownloadProxy::DidReceiveAuthenticationChallenge(authenticationChallenge, challengeID)); }
uint64_t AuthenticationManager::establishIdentifierForChallenge(const WebCore::AuthenticationChallenge& authenticationChallenge) { ASSERT(isMainThread()); uint64_t challengeID = generateAuthenticationChallengeID(); m_challenges.set(challengeID, authenticationChallenge); return challengeID; }
uint64_t AuthenticationManager::addChallengeToChallengeMap(const Challenge& challenge) { ASSERT(RunLoop::isMain()); uint64_t challengeID = generateAuthenticationChallengeID(); m_challenges.set(challengeID, challenge); return challengeID; }
void AuthenticationManager::didReceiveAuthenticationChallenge(WebFrame* frame, const AuthenticationChallenge& authenticationChallenge) { ASSERT(frame); ASSERT(frame->page()); uint64_t challengeID = generateAuthenticationChallengeID(); m_challenges.set(challengeID, authenticationChallenge); m_process->send(Messages::WebPageProxy::DidReceiveAuthenticationChallenge(frame->frameID(), authenticationChallenge, challengeID), frame->page()->pageID()); }