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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 OnDestruct() override; |
81 | 82 |
82 // Message handlers. | 83 // Message handlers. |
83 void OnFormNotBlacklisted(const PasswordForm& form); | 84 void OnFormNotBlacklisted(const PasswordForm& form); |
84 void OnPasswordAccepted(const base::string16& password); | 85 void OnPasswordAccepted(const base::string16& password); |
85 void OnFormsEligibleForGenerationFound( | 86 void OnFormsEligibleForGenerationFound( |
86 const std::vector<autofill::PasswordFormGenerationData>& forms); | 87 const std::vector<autofill::PasswordFormGenerationData>& forms); |
87 | 88 |
88 // Helper function that will try and populate |password_elements_| and | 89 // Helper function that will try and populate |password_elements_| and |
89 // |possible_account_creation_form_|. | 90 // |possible_account_creation_form_|. |
90 void FindPossibleGenerationForm(); | 91 void FindPossibleGenerationForm(); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // Unowned pointer. Used to notify PassowrdAutofillAgent when values | 165 // Unowned pointer. Used to notify PassowrdAutofillAgent when values |
165 // in password fields are updated. | 166 // in password fields are updated. |
166 PasswordAutofillAgent* password_agent_; | 167 PasswordAutofillAgent* password_agent_; |
167 | 168 |
168 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent); | 169 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent); |
169 }; | 170 }; |
170 | 171 |
171 } // namespace autofill | 172 } // namespace autofill |
172 | 173 |
173 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ | 174 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ |
OLD | NEW |