1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h"
7 #include "base/command_line.h"
8 #include "content/shell/browser/shell_login_dialog.h"
9 #include "content/shell/common/shell_switches.h"
13 ShellResourceDispatcherHostDelegate::ShellResourceDispatcherHostDelegate() {
16 ShellResourceDispatcherHostDelegate::~ShellResourceDispatcherHostDelegate() {
19 ResourceDispatcherHostLoginDelegate
*
20 ShellResourceDispatcherHostDelegate::CreateLoginDelegate(
21 net::AuthChallengeInfo
* auth_info
, net::URLRequest
* request
) {
22 if (!login_request_callback_
.is_null()) {
23 login_request_callback_
.Run();
24 login_request_callback_
.Reset();
28 #if !defined(OS_MACOSX)
29 // TODO: implement ShellLoginDialog for other platforms, drop this #if
32 return new ShellLoginDialog(auth_info
, request
);
36 } // namespace content