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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <tuple> | 9 #include <tuple> |
10 | 10 |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 } | 772 } |
773 | 773 |
774 void AutofillAgent::ajaxSucceeded() { | 774 void AutofillAgent::ajaxSucceeded() { |
775 OnSamePageNavigationCompleted(); | 775 OnSamePageNavigationCompleted(); |
776 password_autofill_agent_->AJAXSucceeded(); | 776 password_autofill_agent_->AJAXSucceeded(); |
777 } | 777 } |
778 | 778 |
779 const mojom::AutofillDriverPtr& AutofillAgent::GetAutofillDriver() { | 779 const mojom::AutofillDriverPtr& AutofillAgent::GetAutofillDriver() { |
780 if (!autofill_driver_) { | 780 if (!autofill_driver_) { |
781 render_frame()->GetRemoteInterfaces()->GetInterface( | 781 render_frame()->GetRemoteInterfaces()->GetInterface( |
782 mojo::GetProxy(&autofill_driver_)); | 782 mojo::MakeRequest(&autofill_driver_)); |
783 } | 783 } |
784 | 784 |
785 return autofill_driver_; | 785 return autofill_driver_; |
786 } | 786 } |
787 | 787 |
788 const mojom::PasswordManagerDriverPtr& | 788 const mojom::PasswordManagerDriverPtr& |
789 AutofillAgent::GetPasswordManagerDriver() { | 789 AutofillAgent::GetPasswordManagerDriver() { |
790 DCHECK(password_autofill_agent_); | 790 DCHECK(password_autofill_agent_); |
791 return password_autofill_agent_->GetPasswordManagerDriver(); | 791 return password_autofill_agent_->GetPasswordManagerDriver(); |
792 } | 792 } |
(...skipping 16 matching lines...) Expand all Loading... |
809 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { | 809 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { |
810 // No-op. Don't delete |this|. | 810 // No-op. Don't delete |this|. |
811 } | 811 } |
812 | 812 |
813 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { | 813 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { |
814 if (agent_) | 814 if (agent_) |
815 agent_->FocusChangeComplete(); | 815 agent_->FocusChangeComplete(); |
816 } | 816 } |
817 | 817 |
818 } // namespace autofill | 818 } // namespace autofill |
OLD | NEW |