| 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 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 if (frame && !frame->isLoading()) { | 801 if (frame && !frame->isLoading()) { |
| 802 ProcessForms(); | 802 ProcessForms(); |
| 803 password_autofill_agent_->OnDynamicFormsSeen(); | 803 password_autofill_agent_->OnDynamicFormsSeen(); |
| 804 if (password_generation_agent_) | 804 if (password_generation_agent_) |
| 805 password_generation_agent_->OnDynamicFormsSeen(); | 805 password_generation_agent_->OnDynamicFormsSeen(); |
| 806 return; | 806 return; |
| 807 } | 807 } |
| 808 } | 808 } |
| 809 } | 809 } |
| 810 | 810 |
| 811 void AutofillAgent::xhrSucceeded() { |
| 812 password_autofill_agent_->XHRSucceeded(); |
| 813 } |
| 814 |
| 811 // LegacyAutofillAgent --------------------------------------------------------- | 815 // LegacyAutofillAgent --------------------------------------------------------- |
| 812 | 816 |
| 813 AutofillAgent::LegacyAutofillAgent::LegacyAutofillAgent( | 817 AutofillAgent::LegacyAutofillAgent::LegacyAutofillAgent( |
| 814 content::RenderView* render_view, | 818 content::RenderView* render_view, |
| 815 AutofillAgent* agent) | 819 AutofillAgent* agent) |
| 816 : content::RenderViewObserver(render_view), agent_(agent) { | 820 : content::RenderViewObserver(render_view), agent_(agent) { |
| 817 } | 821 } |
| 818 | 822 |
| 819 AutofillAgent::LegacyAutofillAgent::~LegacyAutofillAgent() { | 823 AutofillAgent::LegacyAutofillAgent::~LegacyAutofillAgent() { |
| 820 } | 824 } |
| 821 | 825 |
| 822 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { | 826 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { |
| 823 // No-op. Don't delete |this|. | 827 // No-op. Don't delete |this|. |
| 824 } | 828 } |
| 825 | 829 |
| 826 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { | 830 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { |
| 827 agent_->FocusChangeComplete(); | 831 agent_->FocusChangeComplete(); |
| 828 } | 832 } |
| 829 | 833 |
| 830 } // namespace autofill | 834 } // namespace autofill |
| OLD | NEW |