Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: content/shell/shell_resource_dispatcher_host_delegate.cc

Issue 9980002: Mac content shell: HTTP auth. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_resource_dispatcher_host_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 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.
4
5 #include "content/shell/shell_resource_dispatcher_host_delegate.h"
6
7 #include "content/shell/shell_login_dialog.h"
8
9 namespace content {
10
11 ShellResourceDispatcherHostDelegate::ShellResourceDispatcherHostDelegate() {
12 }
13
14 ShellResourceDispatcherHostDelegate::~ShellResourceDispatcherHostDelegate() {
15 }
16
17 bool ShellResourceDispatcherHostDelegate::AcceptAuthRequest(
18 net::URLRequest* request,
19 net::AuthChallengeInfo* auth_info) {
20 // Why not give it a try?
21 return true;
22 }
23
24 content::ResourceDispatcherHostLoginDelegate*
25 ShellResourceDispatcherHostDelegate::CreateLoginDelegate(
26 net::AuthChallengeInfo* auth_info, net::URLRequest* request) {
27 #if !defined(OS_MACOSX)
28 // TODO: implement ShellLoginDialog for other platforms, drop this #if
29 return NULL;
30 #else
31 return new ShellLoginDialog(auth_info, request);
32 #endif
33 }
34
35 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_resource_dispatcher_host_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698