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_GENERATION_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 typedef std::vector<AccountCreationFormData> AccountCreationFormDataList; | 91 typedef std::vector<AccountCreationFormData> AccountCreationFormDataList; |
92 | 92 |
93 // RenderFrameObserver: | 93 // RenderFrameObserver: |
94 void DidFinishDocumentLoad() override; | 94 void DidFinishDocumentLoad() override; |
95 void DidFinishLoad() override; | 95 void DidFinishLoad() override; |
96 void OnDestruct() override; | 96 void OnDestruct() override; |
97 | 97 |
98 const mojom::PasswordManagerDriverPtr& GetPasswordManagerDriver(); | 98 const mojom::PasswordManagerDriverPtr& GetPasswordManagerDriver(); |
99 | 99 |
| 100 const mojom::PasswordManagerClientAssociatedPtr& GetPasswordManagerClient(); |
| 101 |
100 // Helper function that will try and populate |password_elements_| and | 102 // Helper function that will try and populate |password_elements_| and |
101 // |possible_account_creation_form_|. | 103 // |possible_account_creation_form_|. |
102 void FindPossibleGenerationForm(); | 104 void FindPossibleGenerationForm(); |
103 | 105 |
104 // Helper function to decide if |passwords_| contains password fields for | 106 // Helper function to decide if |passwords_| contains password fields for |
105 // an account creation form. Sets |generation_element_| to the field that | 107 // an account creation form. Sets |generation_element_| to the field that |
106 // we want to trigger the generation UI on. | 108 // we want to trigger the generation UI on. |
107 void DetermineGenerationElement(); | 109 void DetermineGenerationElement(); |
108 | 110 |
109 // Show password generation UI anchored at |generation_element_|. | 111 // Show password generation UI anchored at |generation_element_|. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // If this feature is enabled. Controlled by Finch. | 177 // If this feature is enabled. Controlled by Finch. |
176 bool enabled_; | 178 bool enabled_; |
177 | 179 |
178 // If the form classifier should run. | 180 // If the form classifier should run. |
179 bool form_classifier_enabled_; | 181 bool form_classifier_enabled_; |
180 | 182 |
181 // Unowned pointer. Used to notify PassowrdAutofillAgent when values | 183 // Unowned pointer. Used to notify PassowrdAutofillAgent when values |
182 // in password fields are updated. | 184 // in password fields are updated. |
183 PasswordAutofillAgent* password_agent_; | 185 PasswordAutofillAgent* password_agent_; |
184 | 186 |
| 187 mojom::PasswordManagerClientAssociatedPtr password_manager_client_; |
| 188 |
185 mojo::Binding<mojom::PasswordGenerationAgent> binding_; | 189 mojo::Binding<mojom::PasswordGenerationAgent> binding_; |
186 | 190 |
187 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent); | 191 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent); |
188 }; | 192 }; |
189 | 193 |
190 } // namespace autofill | 194 } // namespace autofill |
191 | 195 |
192 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ | 196 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ |
OLD | NEW |