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

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

Issue 225823006: Rewrite functions from WebPasswordFormData and WebPasswordFormUtils in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put check on "isActivatedSumbit" back Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 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 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 COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_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 9
10 namespace blink { 10 namespace blink {
11 class WebFormElement; 11 class WebFormElement;
12 } 12 }
13 13
14 namespace autofill { 14 namespace autofill {
15 15
16 struct PasswordForm; 16 struct PasswordForm;
17 17
18 // Get information about a login form that encapsulated in the
19 // PasswordForm struct.
Garrett Casto 2014/04/16 22:56:55 I don't think that we want to make this public now
20 void GetPasswordForm(const blink::WebFormElement& form,
21 PasswordForm* password_form);
22
18 // Create a PasswordForm from DOM form. Webkit doesn't allow storing 23 // 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 24 // 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 25 // happens with a given form and compare against previously Create'd forms
21 // to identify..which sucks. 26 // to identify..which sucks.
22 scoped_ptr<PasswordForm> CreatePasswordForm( 27 scoped_ptr<PasswordForm> CreatePasswordForm(
23 const blink::WebFormElement& form); 28 const blink::WebFormElement& form);
24 29
25 } // namespace autofill 30 } // namespace autofill
26 31
27 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __ 32 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698