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.
5 #ifndef CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_
6 #define CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/content_export.h"
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
);
26 } // namespace content
28 #endif // CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H__