| 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/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/login_model.h" |  | 
| 16 #include "chrome/browser/password_manager/password_manager.h" | 15 #include "chrome/browser/password_manager/password_manager.h" | 
| 17 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 16 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 
| 18 #include "chrome/browser/tab_contents/navigation_controller.h" | 17 #include "chrome/browser/tab_contents/navigation_controller.h" | 
| 19 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" | 
| 20 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 19 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 
| 21 #include "chrome/browser/tab_contents/tab_contents_view_gtk.h" | 20 #include "chrome/browser/tab_contents/tab_contents_view_gtk.h" | 
| 22 #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" | 
| 23 #include "chrome/common/notification_service.h" | 23 #include "chrome/common/notification_service.h" | 
| 24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" | 
| 25 #include "net/url_request/url_request.h" | 25 #include "net/url_request/url_request.h" | 
| 26 | 26 | 
| 27 using webkit_glue::PasswordForm; | 27 using webkit_glue::PasswordForm; | 
| 28 | 28 | 
| 29 // ---------------------------------------------------------------------------- | 29 // ---------------------------------------------------------------------------- | 
| 30 // LoginHandlerGtk | 30 // LoginHandlerGtk | 
| 31 | 31 | 
| 32 // This class simply forwards the authentication from the LoginView (on | 32 // This class simply forwards the authentication from the LoginView (on | 
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 190         SetFocusedWidget(username_entry_); | 190         SetFocusedWidget(username_entry_); | 
| 191 #endif | 191 #endif | 
| 192   } | 192   } | 
| 193 } | 193 } | 
| 194 | 194 | 
| 195 // static | 195 // static | 
| 196 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 196 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 
| 197                                    net::URLRequest* request) { | 197                                    net::URLRequest* request) { | 
| 198   return new LoginHandlerGtk(auth_info, request); | 198   return new LoginHandlerGtk(auth_info, request); | 
| 199 } | 199 } | 
| OLD | NEW | 
|---|