Lines Matching refs:identity_
184 if (identity_.source != HttpAuth::IDENT_SRC_DEFAULT_CREDENTIALS) { in MaybeGenerateAuthToken()
185 username = &identity_.username; in MaybeGenerateAuthToken()
186 password = &identity_.password; in MaybeGenerateAuthToken()
207 DCHECK(identity_.invalid); in SelectPreemptiveAuth()
234 identity_.source = HttpAuth::IDENT_SRC_PATH_LOOKUP; in SelectPreemptiveAuth()
235 identity_.invalid = false; in SelectPreemptiveAuth()
236 identity_.username = entry->username(); in SelectPreemptiveAuth()
237 identity_.password = entry->password(); in SelectPreemptiveAuth()
305 (identity_.source == HttpAuth::IDENT_SRC_PATH_LOOKUP) ? in HandleAuthChallenge()
315 identity_.invalid = true; in HandleAuthChallenge()
353 identity_.invalid = false; in HandleAuthChallenge()
358 if (identity_.invalid) { in HandleAuthChallenge()
372 DCHECK(identity_.invalid || (username.empty() && password.empty())); in ResetAuth()
374 if (identity_.invalid) { in ResetAuth()
376 identity_.source = HttpAuth::IDENT_SRC_EXTERNAL; in ResetAuth()
377 identity_.invalid = false; in ResetAuth()
378 identity_.username = username; in ResetAuth()
379 identity_.password = password; in ResetAuth()
382 DCHECK(identity_.source != HttpAuth::IDENT_SRC_PATH_LOOKUP); in ResetAuth()
398 switch (identity_.source) { in ResetAuth()
405 identity_.username, identity_.password, in ResetAuth()
416 return handler_.get() && !identity_.invalid; in HaveAuth()
426 identity_ = HttpAuth::Identity(); in InvalidateCurrentHandler()
437 handler_->auth_scheme(), identity_.username, in InvalidateRejectedAuthFromCache()
438 identity_.password); in InvalidateRejectedAuthFromCache()
444 DCHECK(identity_.invalid); in SelectNextAuthIdentityToTry()
449 identity_.source = HttpAuth::IDENT_SRC_URL; in SelectNextAuthIdentityToTry()
450 identity_.invalid = false; in SelectNextAuthIdentityToTry()
453 &identity_.username, in SelectNextAuthIdentityToTry()
454 &identity_.password); in SelectNextAuthIdentityToTry()
467 identity_.source = HttpAuth::IDENT_SRC_REALM_LOOKUP; in SelectNextAuthIdentityToTry()
468 identity_.invalid = false; in SelectNextAuthIdentityToTry()
469 identity_.username = entry->username(); in SelectNextAuthIdentityToTry()
470 identity_.password = entry->password(); in SelectNextAuthIdentityToTry()
480 identity_.source = HttpAuth::IDENT_SRC_DEFAULT_CREDENTIALS; in SelectNextAuthIdentityToTry()
481 identity_.invalid = false; in SelectNextAuthIdentityToTry()