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