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

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

Issue 1960023002: Destroy (Password)AutofillAgent safely (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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 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 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // Unowned pointer. Used to notify PassowrdAutofillAgent when values 159 // Unowned pointer. Used to notify PassowrdAutofillAgent when values
159 // in password fields are updated. 160 // in password fields are updated.
160 PasswordAutofillAgent* password_agent_; 161 PasswordAutofillAgent* password_agent_;
161 162
162 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent); 163 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent);
163 }; 164 };
164 165
165 } // namespace autofill 166 } // namespace autofill
166 167
167 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ 168 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698