| 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_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | |
| 14 #include "components/autofill/content/renderer/password_form_conversion_utils.h" | 13 #include "components/autofill/content/renderer/password_form_conversion_utils.h" |
| 15 #include "components/autofill/core/common/form_data_predictions.h" | 14 #include "components/autofill/core/common/form_data_predictions.h" |
| 16 #include "components/autofill/core/common/password_form_field_prediction_map.h" | 15 #include "components/autofill/core/common/password_form_field_prediction_map.h" |
| 17 #include "components/autofill/core/common/password_form_fill_data.h" | 16 #include "components/autofill/core/common/password_form_fill_data.h" |
| 18 #include "content/public/renderer/render_frame_observer.h" | 17 #include "content/public/renderer/render_frame_observer.h" |
| 19 #include "content/public/renderer/render_view_observer.h" | 18 #include "content/public/renderer/render_view_observer.h" |
| 20 #include "third_party/WebKit/public/web/WebInputElement.h" | 19 #include "third_party/WebKit/public/web/WebInputElement.h" |
| 21 | 20 |
| 22 namespace blink { | 21 namespace blink { |
| 23 class WebInputElement; | 22 class WebInputElement; |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // True indicates that the password field was autofilled, false otherwise. | 232 // True indicates that the password field was autofilled, false otherwise. |
| 234 bool was_password_autofilled_; | 233 bool was_password_autofilled_; |
| 235 | 234 |
| 236 // Records the username typed before suggestions preview. | 235 // Records the username typed before suggestions preview. |
| 237 base::string16 username_query_prefix_; | 236 base::string16 username_query_prefix_; |
| 238 | 237 |
| 239 // Contains server predictions for username, password and/or new password | 238 // Contains server predictions for username, password and/or new password |
| 240 // fields for individual forms. | 239 // fields for individual forms. |
| 241 FormsPredictionsMap form_predictions_; | 240 FormsPredictionsMap form_predictions_; |
| 242 | 241 |
| 243 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | |
| 244 | |
| 245 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 242 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 246 }; | 243 }; |
| 247 | 244 |
| 248 } // namespace autofill | 245 } // namespace autofill |
| 249 | 246 |
| 250 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 247 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |