| Index: content/shell/shell_resource_dispatcher_host_delegate.cc
|
| diff --git a/content/shell/shell_resource_dispatcher_host_delegate.cc b/content/shell/shell_resource_dispatcher_host_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fe3cc05ff009b3a13dce1b4360188141b52a8bbc
|
| --- /dev/null
|
| +++ b/content/shell/shell_resource_dispatcher_host_delegate.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/shell/shell_resource_dispatcher_host_delegate.h"
|
| +
|
| +#include "content/shell/shell_login_dialog.h"
|
| +
|
| +namespace content {
|
| +
|
| +ShellResourceDispatcherHostDelegate::ShellResourceDispatcherHostDelegate() {
|
| +}
|
| +
|
| +ShellResourceDispatcherHostDelegate::~ShellResourceDispatcherHostDelegate() {
|
| +}
|
| +
|
| +bool ShellResourceDispatcherHostDelegate::AcceptAuthRequest(
|
| + net::URLRequest* request,
|
| + net::AuthChallengeInfo* auth_info) {
|
| + // Why not give it a try?
|
| + return true;
|
| +}
|
| +
|
| +content::ResourceDispatcherHostLoginDelegate*
|
| +ShellResourceDispatcherHostDelegate::CreateLoginDelegate(
|
| + net::AuthChallengeInfo* auth_info, net::URLRequest* request) {
|
| + return new ShellLoginDialog(auth_info, request);
|
| +}
|
| +
|
| +} // namespace content
|
|
|