diff options
author | yaar@chromium.org <yaar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 17:51:25 +0000 |
---|---|---|
committer | yaar@chromium.org <yaar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 17:51:25 +0000 |
commit | 4e6ff9412901d75792f58ad8eb95b37ef8edf4f6 (patch) | |
tree | 992086b591ab153b7770542bfccf1c58ce530cbd /webkit/glue/password_form.h | |
parent | baf652e912759ba285ffa63dbd8a6a68bc7aa4a2 (diff) | |
download | chromium_src-4e6ff9412901d75792f58ad8eb95b37ef8edf4f6.zip chromium_src-4e6ff9412901d75792f58ad8eb95b37ef8edf4f6.tar.gz chromium_src-4e6ff9412901d75792f58ad8eb95b37ef8edf4f6.tar.bz2 |
Move PasswordFormDomManager::CreatePassword into the WebKit API
http://code.google.com/p/chromium/issues/detail?id=24619
Review URL: http://codereview.chromium.org/345056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/password_form.h')
-rw-r--r-- | webkit/glue/password_form.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/webkit/glue/password_form.h b/webkit/glue/password_form.h index b07576d..f392029 100644 --- a/webkit/glue/password_form.h +++ b/webkit/glue/password_form.h @@ -10,6 +10,7 @@ #include "base/time.h" #include "googleurl/src/gurl.h" +#include "webkit/api/public/WebPasswordFormData.h" namespace webkit_glue { @@ -140,6 +141,23 @@ struct PasswordForm { preferred(false), blacklisted_by_user(false) { } + + PasswordForm(const WebKit::WebPasswordFormData& web_password_form) + : scheme(SCHEME_HTML), + signon_realm(web_password_form.signonRealm.utf8()), + origin(web_password_form.origin), + action(web_password_form.action), + submit_element(web_password_form.submitElement), + username_element(web_password_form.userNameElement), + username_value(web_password_form.userNameValue), + password_element(web_password_form.passwordElement), + password_value(web_password_form.passwordValue), + old_password_element(web_password_form.oldPasswordElement), + old_password_value(web_password_form.oldPasswordValue), + ssl_valid(false), + preferred(false), + blacklisted_by_user(false) { + } }; // Map username to PasswordForm* for convenience. See password_form_manager.h. |