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

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

Issue 2893633002: [Password Manager] Make filling robust against changing url by JavaScript (Closed)
Patch Set: fix merge Created 3 years, 7 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 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const char* value_in_lowercase); 65 const char* value_in_lowercase);
66 66
67 // Checks in a case-insensitive way if credit card autocomplete attributes for 67 // Checks in a case-insensitive way if credit card autocomplete attributes for
68 // the given |element| are present. 68 // the given |element| are present.
69 bool HasCreditCardAutocompleteAttributes(const blink::WebInputElement& element); 69 bool HasCreditCardAutocompleteAttributes(const blink::WebInputElement& element);
70 70
71 // Returns whether the form |field| has a "password" type, but looks like a 71 // Returns whether the form |field| has a "password" type, but looks like a
72 // credit card verification field. 72 // credit card verification field.
73 bool IsCreditCardVerificationPasswordField(const blink::WebInputElement& field); 73 bool IsCreditCardVerificationPasswordField(const blink::WebInputElement& field);
74 74
75 // The "Realm" for the sign-on. This is scheme, host, port.
76 std::string GetSignOnRealm(const GURL& origin);
77
75 } // namespace autofill 78 } // namespace autofill
76 79
77 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __ 80 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698