Add diagnostics_writer.cc to the list of files allowed to printf.
[chromium-blink-merge.git] / components / autofill / content / renderer / password_form_conversion_utils.h
blob9f017253d1b1ac32a546edd941c642e56b50e478
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_
8 #include "base/memory/scoped_ptr.h"
10 namespace blink {
11 class WebFormElement;
14 namespace autofill {
16 struct PasswordForm;
18 // Create a PasswordForm from DOM form. Webkit doesn't allow storing
19 // custom metadata to DOM nodes, so we have to do this every time an event
20 // happens with a given form and compare against previously Create'd forms
21 // to identify..which sucks.
22 scoped_ptr<PasswordForm> CreatePasswordForm(
23 const blink::WebFormElement& form);
25 } // namespace autofill
27 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H__