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

Side by Side Diff: components/password_manager/content/browser/content_password_manager_driver.cc

Issue 1153023004: Prepare the infrastructure for password overrides. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the test. Created 5 years, 6 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 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 void ContentPasswordManagerDriver::AccountCreationFormsFound( 65 void ContentPasswordManagerDriver::AccountCreationFormsFound(
66 const std::vector<autofill::FormData>& forms) { 66 const std::vector<autofill::FormData>& forms) {
67 content::RenderFrameHost* host = render_frame_host_; 67 content::RenderFrameHost* host = render_frame_host_;
68 host->Send(new AutofillMsg_AccountCreationFormsDetected(host->GetRoutingID(), 68 host->Send(new AutofillMsg_AccountCreationFormsDetected(host->GetRoutingID(),
69 forms)); 69 forms));
70 } 70 }
71 71
72 void ContentPasswordManagerDriver::AutofillDataReceived( 72 void ContentPasswordManagerDriver::AutofillDataReceived(
73 const std::map<autofill::FormData, autofill::FormFieldData>& predictions) { 73 const std::map<autofill::FormData,
74 autofill::PasswordFormFieldPredictionMap>& predictions) {
74 content::RenderFrameHost* host = render_frame_host_; 75 content::RenderFrameHost* host = render_frame_host_;
75 host->Send(new AutofillMsg_AutofillUsernameDataReceived(host->GetRoutingID(), 76 host->Send(new AutofillMsg_AutofillUsernameAndPasswordDataReceived(
76 predictions)); 77 host->GetRoutingID(),
78 predictions));
77 } 79 }
78 80
79 void ContentPasswordManagerDriver::GeneratedPasswordAccepted( 81 void ContentPasswordManagerDriver::GeneratedPasswordAccepted(
80 const base::string16& password) { 82 const base::string16& password) {
81 content::RenderFrameHost* host = render_frame_host_; 83 content::RenderFrameHost* host = render_frame_host_;
82 host->Send(new AutofillMsg_GeneratedPasswordAccepted(host->GetRoutingID(), 84 host->Send(new AutofillMsg_GeneratedPasswordAccepted(host->GetRoutingID(),
83 password)); 85 password));
84 } 86 }
85 87
86 void ContentPasswordManagerDriver::FillSuggestion( 88 void ContentPasswordManagerDriver::FillSuggestion(
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 GetPasswordManager()->OnInPageNavigation(this, password_form); 174 GetPasswordManager()->OnInPageNavigation(this, password_form);
173 } 175 }
174 176
175 void ContentPasswordManagerDriver::OnPasswordNoLongerGenerated( 177 void ContentPasswordManagerDriver::OnPasswordNoLongerGenerated(
176 const autofill::PasswordForm& password_form) { 178 const autofill::PasswordForm& password_form) {
177 GetPasswordManager()->SetHasGeneratedPasswordForForm(this, password_form, 179 GetPasswordManager()->SetHasGeneratedPasswordForForm(this, password_form,
178 false); 180 false);
179 } 181 }
180 182
181 } // namespace password_manager 183 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698