| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void set_enabled(bool enabled) { enabled_ = enabled; } | 63 void set_enabled(bool enabled) { enabled_ = enabled; } |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 struct AccountCreationFormData { | 66 struct AccountCreationFormData { |
| 67 linked_ptr<PasswordForm> form; | 67 linked_ptr<PasswordForm> form; |
| 68 std::vector<blink::WebInputElement> password_elements; | 68 std::vector<blink::WebInputElement> password_elements; |
| 69 | 69 |
| 70 AccountCreationFormData( | 70 AccountCreationFormData( |
| 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(); | 74 ~AccountCreationFormData(); |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 typedef std::vector<AccountCreationFormData> AccountCreationFormDataList; | 77 typedef std::vector<AccountCreationFormData> AccountCreationFormDataList; |
| 77 | 78 |
| 78 // RenderFrameObserver: | 79 // RenderFrameObserver: |
| 79 void DidFinishDocumentLoad() override; | 80 void DidFinishDocumentLoad() override; |
| 80 | 81 |
| 81 // Message handlers. | 82 // Message handlers. |
| 82 void OnFormNotBlacklisted(const PasswordForm& form); | 83 void OnFormNotBlacklisted(const PasswordForm& form); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // Unowned pointer. Used to notify PassowrdAutofillAgent when values | 153 // Unowned pointer. Used to notify PassowrdAutofillAgent when values |
| 153 // in password fields are updated. | 154 // in password fields are updated. |
| 154 PasswordAutofillAgent* password_agent_; | 155 PasswordAutofillAgent* password_agent_; |
| 155 | 156 |
| 156 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent); | 157 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent); |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 } // namespace autofill | 160 } // namespace autofill |
| 160 | 161 |
| 161 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ | 162 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ |
| OLD | NEW |