| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 TabContents *tab_contents_; | 143 TabContents *tab_contents_; |
| 144 std::string explanation_; | 144 std::string explanation_; |
| 145 bool closed_; | 145 bool closed_; |
| 146 | 146 |
| 147 bool has_autofill_; | 147 bool has_autofill_; |
| 148 bool ready_for_autofill_; | 148 bool ready_for_autofill_; |
| 149 std::string autofill_username_; | 149 std::string autofill_username_; |
| 150 std::string autofill_password_; | 150 std::string autofill_password_; |
| 151 | 151 |
| 152 static const int kDialogWidth = 400; | 152 static const int kDialogWidth = 400; |
| 153 static const int kDialogHeight = 130; | 153 static const int kDialogHeight = 160; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(LoginHandlerHtmlDelegate); | 155 DISALLOW_COPY_AND_ASSIGN(LoginHandlerHtmlDelegate); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 class LoginHandlerHtml : public LoginHandler { | 158 class LoginHandlerHtml : public LoginHandler { |
| 159 public: | 159 public: |
| 160 LoginHandlerHtml(net::AuthChallengeInfo* auth_info, net::URLRequest* request) | 160 LoginHandlerHtml(net::AuthChallengeInfo* auth_info, net::URLRequest* request) |
| 161 : LoginHandler(auth_info, request), | 161 : LoginHandler(auth_info, request), |
| 162 delegate_(NULL) { | 162 delegate_(NULL) { |
| 163 } | 163 } |
| (...skipping 86 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 |