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 <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "app/gtk_signal.h" | |
10 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
11 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/browser_thread.h" | 11 #include "chrome/browser/browser_thread.h" |
13 #include "chrome/browser/password_manager/password_manager.h" | 12 #include "chrome/browser/password_manager/password_manager.h" |
14 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 13 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
15 #include "chrome/browser/tab_contents/navigation_controller.h" | 14 #include "chrome/browser/tab_contents/navigation_controller.h" |
16 #include "chrome/browser/tab_contents/tab_contents.h" | 15 #include "chrome/browser/tab_contents/tab_contents.h" |
17 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 16 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
18 #include "chrome/browser/tab_contents/tab_contents_view_gtk.h" | 17 #include "chrome/browser/tab_contents/tab_contents_view_gtk.h" |
19 #include "chrome/browser/tab_contents/tab_util.h" | 18 #include "chrome/browser/tab_contents/tab_util.h" |
20 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" | 19 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
21 #include "chrome/browser/ui/gtk/gtk_util.h" | 20 #include "chrome/browser/ui/gtk/gtk_util.h" |
22 #include "chrome/browser/ui/login/login_model.h" | 21 #include "chrome/browser/ui/login/login_model.h" |
23 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
24 #include "net/url_request/url_request.h" | 23 #include "net/url_request/url_request.h" |
| 24 #include "ui/base/gtk/gtk_signal.h" |
25 | 25 |
26 using webkit_glue::PasswordForm; | 26 using webkit_glue::PasswordForm; |
27 | 27 |
28 // ---------------------------------------------------------------------------- | 28 // ---------------------------------------------------------------------------- |
29 // LoginHandlerGtk | 29 // LoginHandlerGtk |
30 | 30 |
31 // This class simply forwards the authentication from the LoginView (on | 31 // This class simply forwards the authentication from the LoginView (on |
32 // the UI thread) to the net::URLRequest (on the I/O thread). | 32 // the UI thread) to the net::URLRequest (on the I/O thread). |
33 // This class uses ref counting to ensure that it lives until all InvokeLaters | 33 // This class uses ref counting to ensure that it lives until all InvokeLaters |
34 // have been called. | 34 // have been called. |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 SetFocusedWidget(username_entry_); | 189 SetFocusedWidget(username_entry_); |
190 #endif | 190 #endif |
191 } | 191 } |
192 } | 192 } |
193 | 193 |
194 // static | 194 // static |
195 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 195 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, |
196 net::URLRequest* request) { | 196 net::URLRequest* request) { |
197 return new LoginHandlerGtk(auth_info, request); | 197 return new LoginHandlerGtk(auth_info, request); |
198 } | 198 } |
OLD | NEW |