OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/password_manager/content/browser/content_password_manager_d
river.h" | 5 #include "components/password_manager/content/browser/content_password_manager_d
river.h" |
6 | 6 |
7 #include "components/autofill/content/common/autofill_messages.h" | 7 #include "components/autofill/content/common/autofill_messages.h" |
8 #include "components/autofill/core/common/form_data.h" | 8 #include "components/autofill/core/common/form_data.h" |
9 #include "components/autofill/core/common/password_form.h" | 9 #include "components/autofill/core/common/password_form.h" |
10 #include "components/password_manager/content/browser/content_password_manager_d
river_factory.h" | 10 #include "components/password_manager/content/browser/content_password_manager_d
river_factory.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), form)); | 59 host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), form)); |
60 } | 60 } |
61 | 61 |
62 void ContentPasswordManagerDriver::AccountCreationFormsFound( | 62 void ContentPasswordManagerDriver::AccountCreationFormsFound( |
63 const std::vector<autofill::FormData>& forms) { | 63 const std::vector<autofill::FormData>& forms) { |
64 content::RenderFrameHost* host = render_frame_host_; | 64 content::RenderFrameHost* host = render_frame_host_; |
65 host->Send(new AutofillMsg_AccountCreationFormsDetected(host->GetRoutingID(), | 65 host->Send(new AutofillMsg_AccountCreationFormsDetected(host->GetRoutingID(), |
66 forms)); | 66 forms)); |
67 } | 67 } |
68 | 68 |
| 69 void ContentPasswordManagerDriver::GeneratedPasswordAccepted( |
| 70 const base::string16& password) { |
| 71 content::RenderFrameHost* host = render_frame_host_; |
| 72 host->Send(new AutofillMsg_GeneratedPasswordAccepted(host->GetRoutingID(), |
| 73 password)); |
| 74 } |
| 75 |
69 void ContentPasswordManagerDriver::FillSuggestion( | 76 void ContentPasswordManagerDriver::FillSuggestion( |
70 const base::string16& username, | 77 const base::string16& username, |
71 const base::string16& password) { | 78 const base::string16& password) { |
72 content::RenderFrameHost* host = render_frame_host_; | 79 content::RenderFrameHost* host = render_frame_host_; |
73 host->Send( | 80 host->Send( |
74 new AutofillMsg_FillPasswordSuggestion(host->GetRoutingID(), | 81 new AutofillMsg_FillPasswordSuggestion(host->GetRoutingID(), |
75 username, | 82 username, |
76 password)); | 83 password)); |
77 } | 84 } |
78 | 85 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 151 |
145 void ContentPasswordManagerDriver::DidNavigateFrame( | 152 void ContentPasswordManagerDriver::DidNavigateFrame( |
146 const content::LoadCommittedDetails& details, | 153 const content::LoadCommittedDetails& details, |
147 const content::FrameNavigateParams& params) { | 154 const content::FrameNavigateParams& params) { |
148 GetPasswordAutofillManager()->Reset(); | 155 GetPasswordAutofillManager()->Reset(); |
149 if (!render_frame_host_->GetParent()) | 156 if (!render_frame_host_->GetParent()) |
150 GetPasswordManager()->DidNavigateMainFrame(details.is_in_page); | 157 GetPasswordManager()->DidNavigateMainFrame(details.is_in_page); |
151 } | 158 } |
152 | 159 |
153 } // namespace password_manager | 160 } // namespace password_manager |
OLD | NEW |