| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 closed_(false), | 79 closed_(false), |
| 80 has_autofill_(false), | 80 has_autofill_(false), |
| 81 ready_for_autofill_(false) { | 81 ready_for_autofill_(false) { |
| 82 } | 82 } |
| 83 | 83 |
| 84 // HtmlDialogUIDelegate methods: | 84 // HtmlDialogUIDelegate methods: |
| 85 virtual bool IsDialogModal() const OVERRIDE { | 85 virtual bool IsDialogModal() const OVERRIDE { |
| 86 return true; | 86 return true; |
| 87 } | 87 } |
| 88 | 88 |
| 89 virtual std::wstring GetDialogTitle() const OVERRIDE { | 89 virtual string16 GetDialogTitle() const OVERRIDE { |
| 90 return UTF16ToWide(l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_TITLE)); | 90 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_TITLE); |
| 91 } | 91 } |
| 92 | 92 |
| 93 virtual GURL GetDialogContentURL() const OVERRIDE { | 93 virtual GURL GetDialogContentURL() const OVERRIDE { |
| 94 return GURL(chrome::kChromeUIHttpAuthURL); | 94 return GURL(chrome::kChromeUIHttpAuthURL); |
| 95 } | 95 } |
| 96 | 96 |
| 97 virtual void GetWebUIMessageHandlers( | 97 virtual void GetWebUIMessageHandlers( |
| 98 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE { | 98 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE { |
| 99 const WebUIMessageHandler* handler = this; | 99 const WebUIMessageHandler* handler = this; |
| 100 handlers->push_back(const_cast<WebUIMessageHandler*>(handler)); | 100 handlers->push_back(const_cast<WebUIMessageHandler*>(handler)); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 SetDialog(dialog); | 250 SetDialog(dialog); |
| 251 | 251 |
| 252 NotifyAuthNeeded(); | 252 NotifyAuthNeeded(); |
| 253 } | 253 } |
| 254 | 254 |
| 255 // static | 255 // static |
| 256 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 256 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, |
| 257 net::URLRequest* request) { | 257 net::URLRequest* request) { |
| 258 return new LoginHandlerHtml(auth_info, request); | 258 return new LoginHandlerHtml(auth_info, request); |
| 259 } | 259 } |
| OLD | NEW |