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

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

Issue 2352533003: [Autofill] Migrate ChromePasswordManagerClient<-->PasswordGenerationAgent IPCs to mojo. (Closed)
Patch Set: Rebase only Created 4 years, 2 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_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
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
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_
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/BUILD.gn ('k') | components/autofill/content/renderer/password_generation_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698