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/password_autofill_agent.h" | 5 #include "components/autofill/content/renderer/password_autofill_agent.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 binding_(this) { | 631 binding_(this) { |
632 // PasswordAutofillAgent is guaranteed to outlive |render_frame|. | 632 // PasswordAutofillAgent is guaranteed to outlive |render_frame|. |
633 render_frame->GetInterfaceRegistry()->AddInterface( | 633 render_frame->GetInterfaceRegistry()->AddInterface( |
634 base::Bind(&PasswordAutofillAgent::BindRequest, base::Unretained(this))); | 634 base::Bind(&PasswordAutofillAgent::BindRequest, base::Unretained(this))); |
635 } | 635 } |
636 | 636 |
637 PasswordAutofillAgent::~PasswordAutofillAgent() { | 637 PasswordAutofillAgent::~PasswordAutofillAgent() { |
638 } | 638 } |
639 | 639 |
640 void PasswordAutofillAgent::BindRequest( | 640 void PasswordAutofillAgent::BindRequest( |
| 641 const service_manager::BindSourceInfo& source_info, |
641 mojom::PasswordAutofillAgentRequest request) { | 642 mojom::PasswordAutofillAgentRequest request) { |
642 binding_.Bind(std::move(request)); | 643 binding_.Bind(std::move(request)); |
643 } | 644 } |
644 | 645 |
645 void PasswordAutofillAgent::SetAutofillAgent(AutofillAgent* autofill_agent) { | 646 void PasswordAutofillAgent::SetAutofillAgent(AutofillAgent* autofill_agent) { |
646 autofill_agent_ = autofill_agent; | 647 autofill_agent_ = autofill_agent; |
647 } | 648 } |
648 | 649 |
649 PasswordAutofillAgent::PasswordValueGatekeeper::PasswordValueGatekeeper() | 650 PasswordAutofillAgent::PasswordValueGatekeeper::PasswordValueGatekeeper() |
650 : was_user_gesture_seen_(false) { | 651 : was_user_gesture_seen_(false) { |
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 PasswordAutofillAgent::GetPasswordManagerDriver() { | 1659 PasswordAutofillAgent::GetPasswordManagerDriver() { |
1659 if (!password_manager_driver_) { | 1660 if (!password_manager_driver_) { |
1660 render_frame()->GetRemoteInterfaces()->GetInterface( | 1661 render_frame()->GetRemoteInterfaces()->GetInterface( |
1661 mojo::MakeRequest(&password_manager_driver_)); | 1662 mojo::MakeRequest(&password_manager_driver_)); |
1662 } | 1663 } |
1663 | 1664 |
1664 return password_manager_driver_; | 1665 return password_manager_driver_; |
1665 } | 1666 } |
1666 | 1667 |
1667 } // namespace autofill | 1668 } // namespace autofill |
OLD | NEW |