| 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/string16.h" | 7 #include "base/string16.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/password_manager/password_manager.h" | 9 #include "chrome/browser/password_manager/password_manager.h" |
| 10 #include "chrome/browser/tab_contents/tab_util.h" | 10 #include "chrome/browser/tab_contents/tab_util.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 virtual string16 GetWindowTitle() const OVERRIDE { | 56 virtual string16 GetWindowTitle() const OVERRIDE { |
| 57 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_TITLE); | 57 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_TITLE); |
| 58 } | 58 } |
| 59 | 59 |
| 60 virtual void WindowClosing() OVERRIDE { | 60 virtual void WindowClosing() OVERRIDE { |
| 61 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 61 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 62 | 62 |
| 63 WebContents* tab = GetWebContentsForLogin(); | 63 WebContents* tab = GetWebContentsForLogin(); |
| 64 if (tab) | 64 if (tab) |
| 65 tab->GetRenderViewHost()->set_ignore_input_events(false); | 65 tab->GetRenderViewHost()->SetIgnoreInputEvents(false); |
| 66 | 66 |
| 67 // Reference is no longer valid. | 67 // Reference is no longer valid. |
| 68 SetDialog(NULL); | 68 SetDialog(NULL); |
| 69 | 69 |
| 70 CancelAuth(); | 70 CancelAuth(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 virtual void DeleteDelegate() OVERRIDE { | 73 virtual void DeleteDelegate() OVERRIDE { |
| 74 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 74 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 75 | 75 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 LoginView* login_view_; | 144 LoginView* login_view_; |
| 145 | 145 |
| 146 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin); | 146 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 // static | 149 // static |
| 150 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 150 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, |
| 151 net::URLRequest* request) { | 151 net::URLRequest* request) { |
| 152 return new LoginHandlerWin(auth_info, request); | 152 return new LoginHandlerWin(auth_info, request); |
| 153 } | 153 } |
| OLD | NEW |