Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: components/autofill/content/renderer/password_form_conversion_utils.h

Issue 23622013: Move password_form_conversion_utils out of //content into //autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@password_form_includes_removal
Patch Set: Add bug reference for components_browsertests Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 __
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698