| 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 | 568 |
| 569 PasswordAutofillAgent::PasswordAutofillAgent(content::RenderFrame* render_frame) | 569 PasswordAutofillAgent::PasswordAutofillAgent(content::RenderFrame* render_frame) |
| 570 : content::RenderFrameObserver(render_frame), | 570 : content::RenderFrameObserver(render_frame), |
| 571 logging_state_active_(false), | 571 logging_state_active_(false), |
| 572 was_username_autofilled_(false), | 572 was_username_autofilled_(false), |
| 573 was_password_autofilled_(false), | 573 was_password_autofilled_(false), |
| 574 binding_(this) { | 574 binding_(this) { |
| 575 // PasswordAutofillAgent is guaranteed to outlive |render_frame|. | 575 // PasswordAutofillAgent is guaranteed to outlive |render_frame|. |
| 576 render_frame->GetInterfaceRegistry()->AddInterface( | 576 render_frame->GetInterfaceRegistry()->AddInterface( |
| 577 base::Bind(&PasswordAutofillAgent::BindRequest, base::Unretained(this))); | 577 base::Bind(&PasswordAutofillAgent::BindRequest, base::Unretained(this))); |
| 578 GetPasswordManagerDriver()->PasswordAutofillAgentConstructed(); | |
| 579 } | 578 } |
| 580 | 579 |
| 581 PasswordAutofillAgent::~PasswordAutofillAgent() { | 580 PasswordAutofillAgent::~PasswordAutofillAgent() { |
| 582 } | 581 } |
| 583 | 582 |
| 584 void PasswordAutofillAgent::BindRequest( | 583 void PasswordAutofillAgent::BindRequest( |
| 585 mojom::PasswordAutofillAgentRequest request) { | 584 mojom::PasswordAutofillAgentRequest request) { |
| 586 binding_.Bind(std::move(request)); | 585 binding_.Bind(std::move(request)); |
| 587 } | 586 } |
| 588 | 587 |
| (...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1515 PasswordAutofillAgent::GetPasswordManagerDriver() { | 1514 PasswordAutofillAgent::GetPasswordManagerDriver() { |
| 1516 if (!password_manager_driver_) { | 1515 if (!password_manager_driver_) { |
| 1517 render_frame()->GetRemoteInterfaces()->GetInterface( | 1516 render_frame()->GetRemoteInterfaces()->GetInterface( |
| 1518 mojo::MakeRequest(&password_manager_driver_)); | 1517 mojo::MakeRequest(&password_manager_driver_)); |
| 1519 } | 1518 } |
| 1520 | 1519 |
| 1521 return password_manager_driver_; | 1520 return password_manager_driver_; |
| 1522 } | 1521 } |
| 1523 | 1522 |
| 1524 } // namespace autofill | 1523 } // namespace autofill |
| OLD | NEW |