OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 | 9 |
10 namespace content { | |
11 struct PasswordForm; | |
12 } | |
13 | |
14 namespace WebKit { | 10 namespace WebKit { |
15 class WebFormElement; | 11 class WebFormElement; |
16 } | 12 } |
17 | 13 |
18 namespace autofill { | 14 namespace autofill { |
19 | 15 |
| 16 struct PasswordForm; |
| 17 |
20 // Create a PasswordForm from DOM form. Webkit doesn't allow storing | 18 // Create a PasswordForm from DOM form. Webkit doesn't allow storing |
21 // custom metadata to DOM nodes, so we have to do this every time an event | 19 // custom metadata to DOM nodes, so we have to do this every time an event |
22 // happens with a given form and compare against previously Create'd forms | 20 // happens with a given form and compare against previously Create'd forms |
23 // to identify..which sucks. | 21 // to identify..which sucks. |
24 scoped_ptr<content::PasswordForm> CreatePasswordForm( | 22 scoped_ptr<PasswordForm> CreatePasswordForm( |
25 const WebKit::WebFormElement& form); | 23 const WebKit::WebFormElement& form); |
26 | 24 |
27 } // namespace autofill | 25 } // namespace autofill |
28 | 26 |
29 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H
__ | 27 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H
__ |
OLD | NEW |