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

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

Issue 2604453003: Show Form-Not-Secure warning on page load (Closed)
Patch Set: meacer, jochen comments Created 3 years, 11 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_AUTOFILL_AGENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // |show_all| is |true|, will show all possible suggestions for that element, 87 // |show_all| is |true|, will show all possible suggestions for that element,
88 // otherwise shows suggestions based on current value of |element|. 88 // otherwise shows suggestions based on current value of |element|.
89 // If |generation_popup_showing| is true, this function will return false 89 // If |generation_popup_showing| is true, this function will return false
90 // as both UIs should not be shown at the same time. This function should 90 // as both UIs should not be shown at the same time. This function should
91 // still be called in this situation so that UMA stats can be logged. 91 // still be called in this situation so that UMA stats can be logged.
92 // Returns true if any suggestions were shown, false otherwise. 92 // Returns true if any suggestions were shown, false otherwise.
93 bool ShowSuggestions(const blink::WebInputElement& element, 93 bool ShowSuggestions(const blink::WebInputElement& element,
94 bool show_all, 94 bool show_all,
95 bool generation_popup_showing); 95 bool generation_popup_showing);
96 96
97 // Shows an Autofill popup with a warning that the form is not
98 // secure. This is an experimental UI that is shown when a password
99 // field is autofilled on a non-secure page on page load.
100 void ShowNotSecureWarning(const blink::WebInputElement& element);
101
97 // Called when new form controls are inserted. 102 // Called when new form controls are inserted.
98 void OnDynamicFormsSeen(); 103 void OnDynamicFormsSeen();
99 104
100 // Called when an AJAX has succesfully completed. Used to determine if 105 // Called when an AJAX has succesfully completed. Used to determine if
101 // a form has been submitted by AJAX without navigation. 106 // a form has been submitted by AJAX without navigation.
102 void AJAXSucceeded(); 107 void AJAXSucceeded();
103 108
104 // Called when the user first interacts with the page after a load. This is a 109 // Called when the user first interacts with the page after a load. This is a
105 // signal to make autofilled values of password input elements accessible to 110 // signal to make autofilled values of password input elements accessible to
106 // JavaScript. 111 // JavaScript.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 mojom::PasswordManagerDriverPtr password_manager_driver_; 284 mojom::PasswordManagerDriverPtr password_manager_driver_;
280 285
281 mojo::Binding<mojom::PasswordAutofillAgent> binding_; 286 mojo::Binding<mojom::PasswordAutofillAgent> binding_;
282 287
283 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 288 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
284 }; 289 };
285 290
286 } // namespace autofill 291 } // namespace autofill
287 292
288 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 293 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698