| 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 #include "components/autofill/content/renderer/autofill_agent.h" | 5 #include "components/autofill/content/renderer/autofill_agent.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 131 } |
| 132 | 132 |
| 133 AutofillAgent::AutofillAgent(content::RenderFrame* render_frame, | 133 AutofillAgent::AutofillAgent(content::RenderFrame* render_frame, |
| 134 PasswordAutofillAgent* password_autofill_agent, | 134 PasswordAutofillAgent* password_autofill_agent, |
| 135 PasswordGenerationAgent* password_generation_agent) | 135 PasswordGenerationAgent* password_generation_agent) |
| 136 : content::RenderFrameObserver(render_frame), | 136 : content::RenderFrameObserver(render_frame), |
| 137 form_cache_(*render_frame->GetWebFrame()), | 137 form_cache_(*render_frame->GetWebFrame()), |
| 138 password_autofill_agent_(password_autofill_agent), | 138 password_autofill_agent_(password_autofill_agent), |
| 139 password_generation_agent_(password_generation_agent), | 139 password_generation_agent_(password_generation_agent), |
| 140 legacy_(render_frame->GetRenderView(), this), | 140 legacy_(render_frame->GetRenderView(), this), |
| 141 page_click_tracker_(render_frame->GetRenderView(), this), | 141 page_click_tracker_(render_frame, this), |
| 142 autofill_query_id_(0), | 142 autofill_query_id_(0), |
| 143 display_warning_if_disabled_(false), | 143 display_warning_if_disabled_(false), |
| 144 was_query_node_autofilled_(false), | 144 was_query_node_autofilled_(false), |
| 145 has_shown_autofill_popup_for_current_edit_(false), | 145 has_shown_autofill_popup_for_current_edit_(false), |
| 146 did_set_node_text_(false), | 146 did_set_node_text_(false), |
| 147 ignore_text_changes_(false), | 147 ignore_text_changes_(false), |
| 148 is_popup_possibly_visible_(false), | 148 is_popup_possibly_visible_(false), |
| 149 weak_ptr_factory_(this) { | 149 weak_ptr_factory_(this) { |
| 150 render_frame->GetWebFrame()->setAutofillClient(this); | 150 render_frame->GetWebFrame()->setAutofillClient(this); |
| 151 } | 151 } |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 | 788 |
| 789 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { | 789 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { |
| 790 // No-op. Don't delete |this|. | 790 // No-op. Don't delete |this|. |
| 791 } | 791 } |
| 792 | 792 |
| 793 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { | 793 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { |
| 794 agent_->FocusChangeComplete(); | 794 agent_->FocusChangeComplete(); |
| 795 } | 795 } |
| 796 | 796 |
| 797 } // namespace autofill | 797 } // namespace autofill |
| OLD | NEW |