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

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

Issue 1002653002: [Password Manager] Use XHR completion as a possible signal for form submission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "url/gurl.h"
11 12
12 namespace blink { 13 namespace blink {
13 class WebFormElement; 14 class WebFormElement;
14 class WebInputElement; 15 class WebInputElement;
15 class WebString; 16 class WebString;
16 } 17 }
17 18
18 namespace autofill { 19 namespace autofill {
19 20
20 struct PasswordForm; 21 struct PasswordForm;
21 22
22 // Create a PasswordForm from DOM form. Webkit doesn't allow storing 23 // Create a PasswordForm from DOM form. Webkit doesn't allow storing
23 // 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
24 // 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
25 // to identify..which sucks. 26 // to identify..which sucks.
26 // If an element of |form| has an entry in |user_modified_elements|, the 27 // If an element of |form| has an entry in |user_modified_elements|, the
27 // associated string is used instead of the element's value to create 28 // associated string is used instead of the element's value to create
28 // the PasswordForm. 29 // the PasswordForm.
29 scoped_ptr<PasswordForm> CreatePasswordForm( 30 scoped_ptr<PasswordForm> CreatePasswordForm(
30 const blink::WebFormElement& form, 31 const blink::WebFormElement& form,
31 const std::map<const blink::WebInputElement, blink::WebString>* 32 const std::map<const blink::WebInputElement, blink::WebString>*
32 user_modified_elements); 33 user_modified_elements);
33 34
35 GURL GetCanonicalActionURL(const blink::WebFormElement& form);
36
34 } // namespace autofill 37 } // namespace autofill
35 38
36 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __ 39 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698