OLD | NEW |
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 Loading... |
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 | 97 // Shows an Autofill-style popup with a warning that the form is not secure. |
98 // secure. This is an experimental UI that is shown when a password | 98 // This UI is shown when a username or password field is autofilled or edited |
99 // field is autofilled on a non-secure page on page load. | 99 // on a non-secure page. |
100 void ShowNotSecureWarning(const blink::WebInputElement& element); | 100 void ShowNotSecureWarning(const blink::WebInputElement& element); |
101 | 101 |
102 // Called when new form controls are inserted. | 102 // Called when new form controls are inserted. |
103 void OnDynamicFormsSeen(); | 103 void OnDynamicFormsSeen(); |
104 | 104 |
105 // Called when an AJAX has succesfully completed. Used to determine if | 105 // Called when an AJAX has succesfully completed. Used to determine if |
106 // a form has been submitted by AJAX without navigation. | 106 // a form has been submitted by AJAX without navigation. |
107 void AJAXSucceeded(); | 107 void AJAXSucceeded(); |
108 | 108 |
109 // 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 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 mojom::PasswordManagerDriverPtr password_manager_driver_; | 284 mojom::PasswordManagerDriverPtr password_manager_driver_; |
285 | 285 |
286 mojo::Binding<mojom::PasswordAutofillAgent> binding_; | 286 mojo::Binding<mojom::PasswordAutofillAgent> binding_; |
287 | 287 |
288 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 288 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
289 }; | 289 }; |
290 | 290 |
291 } // namespace autofill | 291 } // namespace autofill |
292 | 292 |
293 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 293 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
OLD | NEW |