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

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

Issue 2378503002: Observe visibility of password inputs, for HTTP-bad phase 1 (Closed)
Patch Set: fix components_unittests build failure Created 4 years, 2 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <tuple> 9 #include <tuple>
10 10
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 if (password_generation_agent_) 773 if (password_generation_agent_)
774 password_generation_agent_->OnDynamicFormsSeen(); 774 password_generation_agent_->OnDynamicFormsSeen();
775 } 775 }
776 } 776 }
777 777
778 void AutofillAgent::ajaxSucceeded() { 778 void AutofillAgent::ajaxSucceeded() {
779 OnSamePageNavigationCompleted(); 779 OnSamePageNavigationCompleted();
780 password_autofill_agent_->AJAXSucceeded(); 780 password_autofill_agent_->AJAXSucceeded();
781 } 781 }
782 782
783 void AutofillAgent::passwordFieldBecameVisible() {
784 password_autofill_agent_->OnPasswordFieldVisible();
785 }
786
783 const mojom::AutofillDriverPtr& AutofillAgent::GetAutofillDriver() { 787 const mojom::AutofillDriverPtr& AutofillAgent::GetAutofillDriver() {
784 if (!autofill_driver_) { 788 if (!autofill_driver_) {
785 render_frame()->GetRemoteInterfaces()->GetInterface( 789 render_frame()->GetRemoteInterfaces()->GetInterface(
786 mojo::GetProxy(&autofill_driver_)); 790 mojo::GetProxy(&autofill_driver_));
787 } 791 }
788 792
789 return autofill_driver_; 793 return autofill_driver_;
790 } 794 }
791 795
792 const mojom::PasswordManagerDriverPtr& 796 const mojom::PasswordManagerDriverPtr&
(...skipping 20 matching lines...) Expand all
813 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { 817 void AutofillAgent::LegacyAutofillAgent::OnDestruct() {
814 // No-op. Don't delete |this|. 818 // No-op. Don't delete |this|.
815 } 819 }
816 820
817 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { 821 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() {
818 if (agent_) 822 if (agent_)
819 agent_->FocusChangeComplete(); 823 agent_->FocusChangeComplete();
820 } 824 }
821 825
822 } // namespace autofill 826 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698