| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/ui/login/login_prompt.h" | 5 #include "chrome/browser/ui/login/login_prompt.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/lock.h" | 11 #include "base/lock.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/browser/browser_thread.h" | 13 #include "chrome/browser/browser_thread.h" |
| 14 #include "chrome/browser/password_manager/password_manager.h" | 14 #include "chrome/browser/password_manager/password_manager.h" |
| 15 #include "chrome/browser/renderer_host/render_process_host.h" | 15 #include "chrome/browser/renderer_host/render_process_host.h" |
| 16 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 16 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
| 17 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" | 17 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" |
| 18 #include "chrome/browser/tab_contents/constrained_window.h" | 18 #include "chrome/browser/tab_contents/constrained_window.h" |
| 19 #include "chrome/browser/tab_contents/tab_contents.h" | 19 #include "chrome/browser/tab_contents/tab_contents.h" |
| 20 #include "chrome/browser/tab_contents/tab_util.h" | 20 #include "chrome/browser/tab_contents/tab_util.h" |
| 21 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 21 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 22 #include "chrome/common/chrome_switches.h" | |
| 23 #include "chrome/common/notification_service.h" | 22 #include "chrome/common/notification_service.h" |
| 24 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
| 25 #include "net/base/auth.h" | 24 #include "net/base/auth.h" |
| 26 #include "net/base/net_util.h" | 25 #include "net/base/net_util.h" |
| 27 #include "net/url_request/url_request.h" | 26 #include "net/url_request/url_request.h" |
| 28 | 27 |
| 29 using webkit_glue::PasswordForm; | 28 using webkit_glue::PasswordForm; |
| 30 | 29 |
| 31 class LoginHandlerImpl; | 30 class LoginHandlerImpl; |
| 32 | 31 |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 // Public API | 462 // Public API |
| 464 | 463 |
| 465 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, | 464 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, |
| 466 net::URLRequest* request) { | 465 net::URLRequest* request) { |
| 467 LoginHandler* handler = LoginHandler::Create(auth_info, request); | 466 LoginHandler* handler = LoginHandler::Create(auth_info, request); |
| 468 BrowserThread::PostTask( | 467 BrowserThread::PostTask( |
| 469 BrowserThread::UI, FROM_HERE, new LoginDialogTask( | 468 BrowserThread::UI, FROM_HERE, new LoginDialogTask( |
| 470 request->url(), auth_info, handler)); | 469 request->url(), auth_info, handler)); |
| 471 return handler; | 470 return handler; |
| 472 } | 471 } |
| OLD | NEW |