Upstream TestHttpServerClient for Android.
[chromium-blink-merge.git] / content / public / renderer / password_form_conversion_utils.h
blob986963c61a84a72f29681ce1f1ae6df7776e0709
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"
11 namespace WebKit {
12 class WebFormElement;
15 namespace content {
17 struct PasswordForm;
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__