| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/login_prompt.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" |
| 7 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 8 #include "base/lock.h" | 9 #include "base/lock.h" |
| 9 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 10 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/password_manager/password_manager.h" | 12 #include "chrome/browser/password_manager/password_manager.h" |
| 12 #include "chrome/browser/renderer_host/render_process_host.h" | 13 #include "chrome/browser/renderer_host/render_process_host.h" |
| 13 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 14 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
| 14 #include "chrome/browser/tab_contents/constrained_window.h" | 15 #include "chrome/browser/tab_contents/constrained_window.h" |
| 15 #include "chrome/browser/tab_contents/navigation_controller.h" | 16 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 16 #include "chrome/browser/tab_contents/tab_util.h" | 17 #include "chrome/browser/tab_contents/tab_util.h" |
| 17 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" |
| 18 #include "chrome/browser/views/login_view.h" | 19 #include "chrome/browser/views/login_view.h" |
| 19 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
| 20 #include "chrome/common/l10n_util.h" | |
| 21 #include "chrome/common/notification_service.h" | 21 #include "chrome/common/notification_service.h" |
| 22 #include "chrome/views/window/dialog_delegate.h" | 22 #include "chrome/views/window/dialog_delegate.h" |
| 23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
| 24 #include "net/base/auth.h" | 24 #include "net/base/auth.h" |
| 25 #include "net/url_request/url_request.h" | 25 #include "net/url_request/url_request.h" |
| 26 | 26 |
| 27 using namespace std; | 27 using namespace std; |
| 28 using views::LoginView; | 28 using views::LoginView; |
| 29 | 29 |
| 30 class LoginHandlerImpl; | 30 class LoginHandlerImpl; |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 // ---------------------------------------------------------------------------- | 403 // ---------------------------------------------------------------------------- |
| 404 // Public API | 404 // Public API |
| 405 | 405 |
| 406 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, | 406 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, |
| 407 URLRequest* request, | 407 URLRequest* request, |
| 408 MessageLoop* ui_loop) { | 408 MessageLoop* ui_loop) { |
| 409 LoginHandlerImpl* handler = new LoginHandlerImpl(request, ui_loop); | 409 LoginHandlerImpl* handler = new LoginHandlerImpl(request, ui_loop); |
| 410 ui_loop->PostTask(FROM_HERE, new LoginDialogTask(auth_info, handler)); | 410 ui_loop->PostTask(FROM_HERE, new LoginDialogTask(auth_info, handler)); |
| 411 return handler; | 411 return handler; |
| 412 } | 412 } |
| OLD | NEW |