| 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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 if (frame && !frame->isLoading()) { | 761 if (frame && !frame->isLoading()) { |
| 762 ProcessForms(); | 762 ProcessForms(); |
| 763 password_autofill_agent_->OnDynamicFormsSeen(); | 763 password_autofill_agent_->OnDynamicFormsSeen(); |
| 764 if (password_generation_agent_) | 764 if (password_generation_agent_) |
| 765 password_generation_agent_->OnDynamicFormsSeen(); | 765 password_generation_agent_->OnDynamicFormsSeen(); |
| 766 return; | 766 return; |
| 767 } | 767 } |
| 768 } | 768 } |
| 769 } | 769 } |
| 770 | 770 |
| 771 void AutofillAgent::didRemoveFormControls(const WebVector<WebNode>& nodes) { |
| 772 password_autofill_agent_->OnFormElementsRemoved(nodes); |
| 773 } |
| 774 |
| 775 void AutofillAgent::XHRSucceeded() { |
| 776 password_autofill_agent_->XHRSucceeded(); |
| 777 } |
| 778 |
| 771 // LegacyAutofillAgent --------------------------------------------------------- | 779 // LegacyAutofillAgent --------------------------------------------------------- |
| 772 | 780 |
| 773 AutofillAgent::LegacyAutofillAgent::LegacyAutofillAgent( | 781 AutofillAgent::LegacyAutofillAgent::LegacyAutofillAgent( |
| 774 content::RenderView* render_view, | 782 content::RenderView* render_view, |
| 775 AutofillAgent* agent) | 783 AutofillAgent* agent) |
| 776 : content::RenderViewObserver(render_view), agent_(agent) { | 784 : content::RenderViewObserver(render_view), agent_(agent) { |
| 777 } | 785 } |
| 778 | 786 |
| 779 AutofillAgent::LegacyAutofillAgent::~LegacyAutofillAgent() { | 787 AutofillAgent::LegacyAutofillAgent::~LegacyAutofillAgent() { |
| 780 } | 788 } |
| 781 | 789 |
| 782 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { | 790 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { |
| 783 // No-op. Don't delete |this|. | 791 // No-op. Don't delete |this|. |
| 784 } | 792 } |
| 785 | 793 |
| 786 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { | 794 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { |
| 787 agent_->FocusChangeComplete(); | 795 agent_->FocusChangeComplete(); |
| 788 } | 796 } |
| 789 | 797 |
| 790 } // namespace autofill | 798 } // namespace autofill |
| OLD | NEW |