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 "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/password_manager/password_manager.h" | 8 #include "chrome/browser/password_manager/password_manager.h" |
9 #include "chrome/browser/tab_contents/tab_util.h" | 9 #include "chrome/browser/tab_contents/tab_util.h" |
10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
11 #include "chrome/browser/ui/views/constrained_window_views.h" | 11 #include "chrome/browser/ui/views/constrained_window_views.h" |
12 #include "chrome/browser/ui/views/login_view.h" | 12 #include "chrome/browser/ui/views/login_view.h" |
13 #include "content/browser/renderer_host/render_process_host.h" | 13 #include "content/browser/renderer_host/render_process_host.h" |
14 #include "content/browser/renderer_host/render_view_host.h" | 14 #include "content/browser/renderer_host/render_view_host.h" |
15 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 15 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
16 #include "content/browser/tab_contents/tab_contents.h" | 16 #include "content/browser/tab_contents/tab_contents.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
19 #include "net/url_request/url_request.h" | 19 #include "net/url_request/url_request.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 #include "views/window/dialog_delegate.h" | 21 #include "views/window/dialog_delegate.h" |
22 | 22 |
| 23 using content::BrowserThread; |
23 using webkit_glue::PasswordForm; | 24 using webkit_glue::PasswordForm; |
24 | 25 |
25 // ---------------------------------------------------------------------------- | 26 // ---------------------------------------------------------------------------- |
26 // LoginHandlerWin | 27 // LoginHandlerWin |
27 | 28 |
28 // This class simply forwards the authentication from the LoginView (on | 29 // This class simply forwards the authentication from the LoginView (on |
29 // the UI thread) to the net::URLRequest (on the I/O thread). | 30 // the UI thread) to the net::URLRequest (on the I/O thread). |
30 // This class uses ref counting to ensure that it lives until all InvokeLaters | 31 // This class uses ref counting to ensure that it lives until all InvokeLaters |
31 // have been called. | 32 // have been called. |
32 class LoginHandlerWin : public LoginHandler, | 33 class LoginHandlerWin : public LoginHandler, |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 LoginView* login_view_; | 142 LoginView* login_view_; |
142 | 143 |
143 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin); | 144 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin); |
144 }; | 145 }; |
145 | 146 |
146 // static | 147 // static |
147 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 148 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, |
148 net::URLRequest* request) { | 149 net::URLRequest* request) { |
149 return new LoginHandlerWin(auth_info, request); | 150 return new LoginHandlerWin(auth_info, request); |
150 } | 151 } |
OLD | NEW |