| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 bool show_all, | 95 bool show_all, |
| 96 bool generation_popup_showing); | 96 bool generation_popup_showing); |
| 97 | 97 |
| 98 // Called when new form controls are inserted. | 98 // Called when new form controls are inserted. |
| 99 void OnDynamicFormsSeen(); | 99 void OnDynamicFormsSeen(); |
| 100 | 100 |
| 101 // Called when an AJAX has succesfully completed. Used to determine if | 101 // Called when an AJAX has succesfully completed. Used to determine if |
| 102 // a form has been submitted by AJAX without navigation. | 102 // a form has been submitted by AJAX without navigation. |
| 103 void AJAXSucceeded(); | 103 void AJAXSucceeded(); |
| 104 | 104 |
| 105 // Called when a password field in the frame becomes visible. |
| 106 void OnPasswordFieldVisible(); |
| 107 |
| 105 // Called when the user first interacts with the page after a load. This is a | 108 // Called when the user first interacts with the page after a load. This is a |
| 106 // signal to make autofilled values of password input elements accessible to | 109 // signal to make autofilled values of password input elements accessible to |
| 107 // JavaScript. | 110 // JavaScript. |
| 108 void FirstUserGestureObserved(); | 111 void FirstUserGestureObserved(); |
| 109 | 112 |
| 110 // Given password form data |form_data| and a supplied key |key| for | 113 // Given password form data |form_data| and a supplied key |key| for |
| 111 // referencing the password info, returns a set of WebInputElements in | 114 // referencing the password info, returns a set of WebInputElements in |
| 112 // |elements|, which must be non-null, that the password manager has values | 115 // |elements|, which must be non-null, that the password manager has values |
| 113 // for filling. Also takes an optional logger |logger| for logging password | 116 // for filling. Also takes an optional logger |logger| for logging password |
| 114 // autofill behavior. | 117 // autofill behavior. |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 mojom::PasswordManagerDriverPtr password_manager_driver_; | 283 mojom::PasswordManagerDriverPtr password_manager_driver_; |
| 281 | 284 |
| 282 mojo::Binding<mojom::PasswordAutofillAgent> binding_; | 285 mojo::Binding<mojom::PasswordAutofillAgent> binding_; |
| 283 | 286 |
| 284 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 287 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 285 }; | 288 }; |
| 286 | 289 |
| 287 } // namespace autofill | 290 } // namespace autofill |
| 288 | 291 |
| 289 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 292 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |