Lines Matching refs:form
159 bool LoginDatabase::AddLogin(const PasswordForm& form) {
174 s.BindString(COLUMN_ORIGIN_URL, form.origin.spec());
175 s.BindString(COLUMN_ACTION_URL, form.action.spec());
176 s.BindString16(COLUMN_USERNAME_ELEMENT, form.username_element);
177 s.BindString16(COLUMN_USERNAME_VALUE, form.username_value);
178 s.BindString16(COLUMN_PASSWORD_ELEMENT, form.password_element);
179 std::string encrypted_password = EncryptedString(form.password_value);
182 s.BindString16(COLUMN_SUBMIT_ELEMENT, form.submit_element);
183 s.BindString(COLUMN_SIGNON_REALM, form.signon_realm);
184 s.BindInt(COLUMN_SSL_VALID, form.ssl_valid);
185 s.BindInt(COLUMN_PREFERRED, form.preferred);
186 s.BindInt64(COLUMN_DATE_CREATED, form.date_created.ToTimeT());
187 s.BindInt(COLUMN_BLACKLISTED_BY_USER, form.blacklisted_by_user);
188 s.BindInt(COLUMN_SCHEME, form.scheme);
196 bool LoginDatabase::UpdateLogin(const PasswordForm& form, int* items_changed) {
213 s.BindString(0, form.action.spec());
214 std::string encrypted_password = EncryptedString(form.password_value);
217 s.BindInt(2, form.ssl_valid);
218 s.BindInt(3, form.preferred);
219 s.BindString(4, form.origin.spec());
220 s.BindString16(5, form.username_element);
221 s.BindString16(6, form.username_value);
222 s.BindString16(7, form.password_element);
223 s.BindString(8, form.signon_realm);
235 bool LoginDatabase::RemoveLogin(const PasswordForm& form) {
250 s.BindString(0, form.origin.spec());
251 s.BindString16(1, form.username_element);
252 s.BindString16(2, form.username_value);
253 s.BindString16(3, form.password_element);
254 s.BindString16(4, form.submit_element);
255 s.BindString(5, form.signon_realm);
280 void LoginDatabase::InitPasswordFormFromStatement(PasswordForm* form,
283 form->origin = GURL(tmp);
285 form->action = GURL(tmp);
286 form->username_element = s.ColumnString16(COLUMN_USERNAME_ELEMENT);
287 form->username_value = s.ColumnString16(COLUMN_USERNAME_VALUE);
288 form->password_element = s.ColumnString16(COLUMN_PASSWORD_ELEMENT);
291 form->password_value = DecryptedString(encrypted_password);
292 form->submit_element = s.ColumnString16(COLUMN_SUBMIT_ELEMENT);
294 form->signon_realm = tmp;
295 form->ssl_valid = (s.ColumnInt(COLUMN_SSL_VALID) > 0);
296 form->preferred = (s.ColumnInt(COLUMN_PREFERRED) > 0);
297 form->date_created = base::Time::FromTimeT(
299 form->blacklisted_by_user = (s.ColumnInt(COLUMN_BLACKLISTED_BY_USER) > 0);
302 form->scheme = static_cast<PasswordForm::Scheme>(scheme_int);
305 bool LoginDatabase::GetLogins(const PasswordForm& form,
321 s.BindString(0, form.signon_realm);