This source file includes following definitions.
- CreateLoginDelegate
#include "content/shell/browser/shell_resource_dispatcher_host_delegate.h"
#include "base/command_line.h"
#include "content/shell/browser/shell_login_dialog.h"
#include "content/shell/common/shell_switches.h"
namespace content {
ShellResourceDispatcherHostDelegate::ShellResourceDispatcherHostDelegate() {
}
ShellResourceDispatcherHostDelegate::~ShellResourceDispatcherHostDelegate() {
}
ResourceDispatcherHostLoginDelegate*
ShellResourceDispatcherHostDelegate::CreateLoginDelegate(
net::AuthChallengeInfo* auth_info, net::URLRequest* request) {
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
return NULL;
if (!login_request_callback_.is_null()) {
login_request_callback_.Run();
login_request_callback_.Reset();
return NULL;
}
#if !defined(OS_MACOSX) && !defined(TOOLKIT_GTK)
return NULL;
#else
return new ShellLoginDialog(auth_info, request);
#endif
}
}