| 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/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" |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 // Public API | 444 // Public API |
| 445 | 445 |
| 446 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, | 446 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, |
| 447 net::URLRequest* request) { | 447 net::URLRequest* request) { |
| 448 LoginHandler* handler = LoginHandler::Create(auth_info, request); | 448 LoginHandler* handler = LoginHandler::Create(auth_info, request); |
| 449 BrowserThread::PostTask( | 449 BrowserThread::PostTask( |
| 450 BrowserThread::UI, FROM_HERE, new LoginDialogTask( | 450 BrowserThread::UI, FROM_HERE, new LoginDialogTask( |
| 451 request->url(), auth_info, handler)); | 451 request->url(), auth_info, handler)); |
| 452 return handler; | 452 return handler; |
| 453 } | 453 } |
| OLD | NEW |