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

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

Issue 641593002: Content Shell: LayoutTestResourceDispatcherHostDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@LayoutTestJavaScriptDialogManager
Patch Set: Created 6 years, 2 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
« no previous file with comments | « content/shell/browser/shell_content_browser_client.cc ('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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" 5 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/shell/browser/shell_login_dialog.h" 8 #include "content/shell/browser/shell_login_dialog.h"
9 #include "content/shell/common/shell_switches.h" 9 #include "content/shell/common/shell_switches.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 ShellResourceDispatcherHostDelegate::ShellResourceDispatcherHostDelegate() { 13 ShellResourceDispatcherHostDelegate::ShellResourceDispatcherHostDelegate() {
14 } 14 }
15 15
16 ShellResourceDispatcherHostDelegate::~ShellResourceDispatcherHostDelegate() { 16 ShellResourceDispatcherHostDelegate::~ShellResourceDispatcherHostDelegate() {
17 } 17 }
18 18
19 ResourceDispatcherHostLoginDelegate* 19 ResourceDispatcherHostLoginDelegate*
20 ShellResourceDispatcherHostDelegate::CreateLoginDelegate( 20 ShellResourceDispatcherHostDelegate::CreateLoginDelegate(
21 net::AuthChallengeInfo* auth_info, net::URLRequest* request) { 21 net::AuthChallengeInfo* auth_info, net::URLRequest* request) {
22 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
23 return NULL;
24
25 if (!login_request_callback_.is_null()) { 22 if (!login_request_callback_.is_null()) {
26 login_request_callback_.Run(); 23 login_request_callback_.Run();
27 login_request_callback_.Reset(); 24 login_request_callback_.Reset();
28 return NULL; 25 return NULL;
29 } 26 }
30 27
31 #if !defined(OS_MACOSX) 28 #if !defined(OS_MACOSX)
32 // TODO: implement ShellLoginDialog for other platforms, drop this #if 29 // TODO: implement ShellLoginDialog for other platforms, drop this #if
33 return NULL; 30 return NULL;
34 #else 31 #else
35 return new ShellLoginDialog(auth_info, request); 32 return new ShellLoginDialog(auth_info, request);
36 #endif 33 #endif
37 } 34 }
38 35
39 } // namespace content 36 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_content_browser_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698