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

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

Issue 2048603002: [Password Generation] Handle DidFinishLoad event in PasswordGenerationAgent as well (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | components/autofill/content/renderer/password_generation_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 linked_ptr<PasswordForm> form, 71 linked_ptr<PasswordForm> form,
72 std::vector<blink::WebInputElement> password_elements); 72 std::vector<blink::WebInputElement> password_elements);
73 AccountCreationFormData(const AccountCreationFormData& other); 73 AccountCreationFormData(const AccountCreationFormData& other);
74 ~AccountCreationFormData(); 74 ~AccountCreationFormData();
75 }; 75 };
76 76
77 typedef std::vector<AccountCreationFormData> AccountCreationFormDataList; 77 typedef std::vector<AccountCreationFormData> AccountCreationFormDataList;
78 78
79 // RenderFrameObserver: 79 // RenderFrameObserver:
80 void DidFinishDocumentLoad() override; 80 void DidFinishDocumentLoad() override;
81 void DidFinishLoad() override;
81 void OnDestruct() override; 82 void OnDestruct() override;
82 83
83 // Message handlers. 84 // Message handlers.
84 void OnFormNotBlacklisted(const PasswordForm& form); 85 void OnFormNotBlacklisted(const PasswordForm& form);
85 void OnPasswordAccepted(const base::string16& password); 86 void OnPasswordAccepted(const base::string16& password);
86 void OnFormsEligibleForGenerationFound( 87 void OnFormsEligibleForGenerationFound(
87 const std::vector<autofill::PasswordFormGenerationData>& forms); 88 const std::vector<autofill::PasswordFormGenerationData>& forms);
88 89
89 // Helper function that will try and populate |password_elements_| and 90 // Helper function that will try and populate |password_elements_| and
90 // |possible_account_creation_form_|. 91 // |possible_account_creation_form_|.
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Unowned pointer. Used to notify PassowrdAutofillAgent when values 166 // Unowned pointer. Used to notify PassowrdAutofillAgent when values
166 // in password fields are updated. 167 // in password fields are updated.
167 PasswordAutofillAgent* password_agent_; 168 PasswordAutofillAgent* password_agent_;
168 169
169 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent); 170 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent);
170 }; 171 };
171 172
172 } // namespace autofill 173 } // namespace autofill
173 174
174 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ 175 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/content/renderer/password_generation_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698