OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/common/content_export.h" |
| 10 |
| 11 namespace WebKit { |
| 12 class WebFormElement; |
| 13 } |
| 14 |
| 15 namespace content { |
| 16 |
| 17 struct PasswordForm; |
| 18 |
| 19 // 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 // happens with a given form and compare against previously Create'd forms |
| 22 // to identify..which sucks. |
| 23 CONTENT_EXPORT scoped_ptr<PasswordForm> CreatePasswordForm( |
| 24 const WebKit::WebFormElement& form); |
| 25 |
| 26 } // namespace content |
| 27 |
| 28 #endif // CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H__ |
OLD | NEW |