Lines Matching defs:handler
33 void SetAuthFor(LoginHandler* handler);
51 void LoginPromptBrowserTest::SetAuthFor(LoginHandler* handler) {
52 const net::AuthChallengeInfo* challenge = handler->auth_info();
60 handler->SetAuth(WideToUTF16Hack(info.username_),
78 void AddHandler(LoginHandler* handler);
80 void RemoveHandler(LoginHandler* handler);
107 AddHandler(login_details->handler());
112 RemoveHandler(login_details->handler());
117 RemoveHandler(login_details->handler());
122 void LoginPromptBrowserTestObserver::AddHandler(LoginHandler* handler) {
125 handler);
128 handlers_.push_back(handler);
131 void LoginPromptBrowserTestObserver::RemoveHandler(LoginHandler* handler) {
134 handler);
253 LoginHandler* handler = *observer.handlers_.begin();
255 ASSERT_TRUE(handler);
257 handler->CancelAuth();
311 LoginHandler* handler = *observer.handlers_.begin();
313 ASSERT_TRUE(handler);
315 SetAuthFor(handler);
366 LoginHandler* handler = *observer.handlers_.begin();
368 ASSERT_TRUE(handler);
369 handler->SetAuth(WideToUTF16Hack(bad_username_),
388 LoginHandler* handler = *observer.handlers_.begin();
390 ASSERT_TRUE(handler);
392 SetAuthFor(handler);
454 LoginHandler* handler = *observer.handlers_.begin();
456 ASSERT_TRUE(handler);
457 handler->CancelAuth();