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 3 // found in the LICENSE file. 4 5 #include "webkit/glue/password_form.h" 6 7 namespace webkit_glue { 8 9 PasswordForm::PasswordForm() 10 : scheme(SCHEME_HTML), 11 ssl_valid(false), 12 preferred(false), 13 blacklisted_by_user(false) { 14 } 15 16 PasswordForm::PasswordForm(const WebKit::WebPasswordFormData& web_password_form) 17 : scheme(SCHEME_HTML), 18 signon_realm(web_password_form.signonRealm.utf8()), 19 origin(web_password_form.origin), 20 action(web_password_form.action), 21 submit_element(web_password_form.submitElement), 22 username_element(web_password_form.userNameElement), 23 username_value(web_password_form.userNameValue), 24 password_element(web_password_form.passwordElement), 25 password_value(web_password_form.passwordValue), 26 old_password_element(web_password_form.oldPasswordElement), 27 old_password_value(web_password_form.oldPasswordValue), 28 ssl_valid(false), 29 preferred(false), 30 blacklisted_by_user(false) { 31 } 32 33 PasswordForm::~PasswordForm() { 34 } 35 36 } // namespace webkit_glue 37