Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Side by Side Diff: components/autofill/content/renderer/autofill_agent.cc

Issue 1002653002: [Password Manager] Use XHR completion as a possible signal for form submission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/autofill_agent.h ('k') | components/autofill/content/renderer/password_autofill_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698