OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/password_manager/password_manager.h" | 12 #include "chrome/browser/password_manager/password_manager.h" |
13 #include "chrome/browser/tab_contents/tab_util.h" | 13 #include "chrome/browser/tab_contents/tab_util.h" |
14 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 14 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
15 #include "chrome/common/notification_service.h" | |
16 #include "content/browser/browser_thread.h" | 15 #include "content/browser/browser_thread.h" |
17 #include "content/browser/renderer_host/render_process_host.h" | 16 #include "content/browser/renderer_host/render_process_host.h" |
18 #include "content/browser/renderer_host/render_view_host.h" | 17 #include "content/browser/renderer_host/render_view_host.h" |
19 #include "content/browser/renderer_host/render_view_host_delegate.h" | 18 #include "content/browser/renderer_host/render_view_host_delegate.h" |
20 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 19 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
21 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 20 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
22 #include "content/browser/tab_contents/constrained_window.h" | 21 #include "content/browser/tab_contents/constrained_window.h" |
23 #include "content/browser/tab_contents/tab_contents.h" | 22 #include "content/browser/tab_contents/tab_contents.h" |
| 23 #include "content/common/notification_service.h" |
24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
25 #include "net/base/auth.h" | 25 #include "net/base/auth.h" |
26 #include "net/base/net_util.h" | 26 #include "net/base/net_util.h" |
27 #include "net/url_request/url_request.h" | 27 #include "net/url_request/url_request.h" |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 | 29 |
30 using webkit_glue::PasswordForm; | 30 using webkit_glue::PasswordForm; |
31 | 31 |
32 class LoginHandlerImpl; | 32 class LoginHandlerImpl; |
33 | 33 |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 // Public API | 473 // Public API |
474 | 474 |
475 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, | 475 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, |
476 net::URLRequest* request) { | 476 net::URLRequest* request) { |
477 LoginHandler* handler = LoginHandler::Create(auth_info, request); | 477 LoginHandler* handler = LoginHandler::Create(auth_info, request); |
478 BrowserThread::PostTask( | 478 BrowserThread::PostTask( |
479 BrowserThread::UI, FROM_HERE, new LoginDialogTask( | 479 BrowserThread::UI, FROM_HERE, new LoginDialogTask( |
480 request->url(), auth_info, handler)); | 480 request->url(), auth_info, handler)); |
481 return handler; | 481 return handler; |
482 } | 482 } |
OLD | NEW |