| 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 "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/password_manager/password_manager.h" | 10 #include "chrome/browser/password_manager/password_manager.h" |
| 11 #include "chrome/browser/tab_contents/tab_contents_view_gtk.h" | 11 #include "chrome/browser/tab_contents/tab_contents_view_gtk.h" |
| 12 #include "chrome/browser/tab_contents/tab_util.h" | 12 #include "chrome/browser/tab_contents/tab_util.h" |
| 13 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" | 13 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
| 14 #include "chrome/browser/ui/gtk/gtk_util.h" | 14 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 15 #include "chrome/browser/ui/login/login_model.h" | 15 #include "chrome/browser/ui/login/login_model.h" |
| 16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 17 #include "content/browser/browser_thread.h" | |
| 18 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 17 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 19 #include "content/browser/tab_contents/navigation_controller.h" | 18 #include "content/browser/tab_contents/navigation_controller.h" |
| 20 #include "content/browser/tab_contents/tab_contents.h" | 19 #include "content/browser/tab_contents/tab_contents.h" |
| 21 #include "content/browser/tab_contents/tab_contents_delegate.h" | 20 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 21 #include "content/public/browser/browser_thread.h" |
| 22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
| 23 #include "net/url_request/url_request.h" | 23 #include "net/url_request/url_request.h" |
| 24 #include "ui/base/gtk/gtk_hig_constants.h" | 24 #include "ui/base/gtk/gtk_hig_constants.h" |
| 25 #include "ui/base/gtk/gtk_signal.h" | 25 #include "ui/base/gtk/gtk_signal.h" |
| 26 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
| 27 | 27 |
| 28 using webkit_glue::PasswordForm; | 28 using webkit_glue::PasswordForm; |
| 29 | 29 |
| 30 // ---------------------------------------------------------------------------- | 30 // ---------------------------------------------------------------------------- |
| 31 // LoginHandlerGtk | 31 // LoginHandlerGtk |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // button the default action and mess with the focus. | 182 // button the default action and mess with the focus. |
| 183 gtk_widget_set_can_default(ok_, TRUE); | 183 gtk_widget_set_can_default(ok_, TRUE); |
| 184 gtk_widget_grab_default(ok_); | 184 gtk_widget_grab_default(ok_); |
| 185 } | 185 } |
| 186 | 186 |
| 187 // static | 187 // static |
| 188 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 188 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, |
| 189 net::URLRequest* request) { | 189 net::URLRequest* request) { |
| 190 return new LoginHandlerGtk(auth_info, request); | 190 return new LoginHandlerGtk(auth_info, request); |
| 191 } | 191 } |
| OLD | NEW |