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 "webkit/glue/password_form_dom_manager.h" | 5 #include "webkit/forms/password_form_dom_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPasswordFormData.h
" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPasswordFormData.h
" |
10 #include "webkit/glue/form_field.h" | 10 #include "webkit/forms/form_field.h" |
11 | 11 |
12 using WebKit::WebFormElement; | 12 using WebKit::WebFormElement; |
13 using WebKit::WebInputElement; | 13 using WebKit::WebInputElement; |
14 using WebKit::WebPasswordFormData; | 14 using WebKit::WebPasswordFormData; |
15 | 15 |
16 namespace webkit_glue { | 16 namespace webkit { |
| 17 namespace forms { |
17 | 18 |
18 PasswordFormFillData::PasswordFormFillData() : wait_for_username(false) { | 19 PasswordFormFillData::PasswordFormFillData() : wait_for_username(false) { |
19 } | 20 } |
20 | 21 |
21 PasswordFormFillData::~PasswordFormFillData() { | 22 PasswordFormFillData::~PasswordFormFillData() { |
22 } | 23 } |
23 | 24 |
24 PasswordForm* PasswordFormDomManager::CreatePasswordForm( | 25 PasswordForm* PasswordFormDomManager::CreatePasswordForm( |
25 const WebFormElement& webform) { | 26 const WebFormElement& webform) { |
26 WebPasswordFormData web_password_form(webform); | 27 WebPasswordFormData web_password_form(webform); |
(...skipping 27 matching lines...) Expand all Loading... |
54 result->wait_for_username = wait_for_username_before_autofill; | 55 result->wait_for_username = wait_for_username_before_autofill; |
55 | 56 |
56 // Copy additional username/value pairs. | 57 // Copy additional username/value pairs. |
57 PasswordFormMap::const_iterator iter; | 58 PasswordFormMap::const_iterator iter; |
58 for (iter = matches.begin(); iter != matches.end(); iter++) { | 59 for (iter = matches.begin(); iter != matches.end(); iter++) { |
59 if (iter->second != preferred_match) | 60 if (iter->second != preferred_match) |
60 result->additional_logins[iter->first] = iter->second->password_value; | 61 result->additional_logins[iter->first] = iter->second->password_value; |
61 } | 62 } |
62 } | 63 } |
63 | 64 |
64 } // namespace webkit_glue | 65 } // namespace forms |
| 66 } // namespace webkit |
OLD | NEW |