| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/gtk_signal.h" | 10 #include "app/gtk_signal.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/browser_thread.h" | 12 #include "chrome/browser/browser_thread.h" |
| 13 #include "chrome/browser/gtk/constrained_window_gtk.h" | 13 #include "chrome/browser/gtk/constrained_window_gtk.h" |
| 14 #include "chrome/browser/gtk/gtk_util.h" | 14 #include "chrome/browser/gtk/gtk_util.h" |
| 15 #include "chrome/browser/password_manager/password_manager.h" | 15 #include "chrome/browser/password_manager/password_manager.h" |
| 16 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 16 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
| 17 #include "chrome/browser/tab_contents/navigation_controller.h" | 17 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 18 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" |
| 19 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 19 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
| 20 #include "chrome/browser/tab_contents/tab_contents_view_gtk.h" | 20 #include "chrome/browser/tab_contents/tab_contents_view_gtk.h" |
| 21 #include "chrome/browser/tab_contents/tab_util.h" | 21 #include "chrome/browser/tab_contents/tab_util.h" |
| 22 #include "chrome/browser/ui/login/login_model.h" | 22 #include "chrome/browser/ui/login/login_model.h" |
| 23 #include "chrome/common/notification_service.h" | |
| 24 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
| 25 #include "net/url_request/url_request.h" | 24 #include "net/url_request/url_request.h" |
| 26 | 25 |
| 27 using webkit_glue::PasswordForm; | 26 using webkit_glue::PasswordForm; |
| 28 | 27 |
| 29 // ---------------------------------------------------------------------------- | 28 // ---------------------------------------------------------------------------- |
| 30 // LoginHandlerGtk | 29 // LoginHandlerGtk |
| 31 | 30 |
| 32 // This class simply forwards the authentication from the LoginView (on | 31 // This class simply forwards the authentication from the LoginView (on |
| 33 // 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). |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 SetFocusedWidget(username_entry_); | 189 SetFocusedWidget(username_entry_); |
| 191 #endif | 190 #endif |
| 192 } | 191 } |
| 193 } | 192 } |
| 194 | 193 |
| 195 // static | 194 // static |
| 196 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 195 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, |
| 197 net::URLRequest* request) { | 196 net::URLRequest* request) { |
| 198 return new LoginHandlerGtk(auth_info, request); | 197 return new LoginHandlerGtk(auth_info, request); |
| 199 } | 198 } |
| OLD | NEW |