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

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

Issue 1028163002: Processing USERNAME reply from Autofill server in Password Manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small nit Created 5 years, 9 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), form)); 60 host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), form));
61 } 61 }
62 62
63 void ContentPasswordManagerDriver::AccountCreationFormsFound( 63 void ContentPasswordManagerDriver::AccountCreationFormsFound(
64 const std::vector<autofill::FormData>& forms) { 64 const std::vector<autofill::FormData>& forms) {
65 content::RenderFrameHost* host = render_frame_host_; 65 content::RenderFrameHost* host = render_frame_host_;
66 host->Send(new AutofillMsg_AccountCreationFormsDetected(host->GetRoutingID(), 66 host->Send(new AutofillMsg_AccountCreationFormsDetected(host->GetRoutingID(),
67 forms)); 67 forms));
68 } 68 }
69 69
70 void ContentPasswordManagerDriver::AutofillDataReceived(
71 const std::map<autofill::FormData, autofill::FormFieldData>& predictions) {
72 content::RenderFrameHost* host = render_frame_host_;
73 host->Send(new AutofillMsg_AutofillUsernameDataReceived(host->GetRoutingID(),
74 predictions));
75 }
76
70 void ContentPasswordManagerDriver::GeneratedPasswordAccepted( 77 void ContentPasswordManagerDriver::GeneratedPasswordAccepted(
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(new AutofillMsg_GeneratedPasswordAccepted(host->GetRoutingID(), 80 host->Send(new AutofillMsg_GeneratedPasswordAccepted(host->GetRoutingID(),
74 password)); 81 password));
75 } 82 }
76 83
77 void ContentPasswordManagerDriver::FillSuggestion( 84 void ContentPasswordManagerDriver::FillSuggestion(
78 const base::string16& username, 85 const base::string16& username,
79 const base::string16& password) { 86 const base::string16& password) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 GetPasswordAutofillManager()->DidNavigateMainFrame(); 162 GetPasswordAutofillManager()->DidNavigateMainFrame();
156 } 163 }
157 } 164 }
158 165
159 void ContentPasswordManagerDriver::OnInPageNavigation( 166 void ContentPasswordManagerDriver::OnInPageNavigation(
160 const autofill::PasswordForm& password_form) { 167 const autofill::PasswordForm& password_form) {
161 GetPasswordManager()->OnInPageNavigation(this, password_form); 168 GetPasswordManager()->OnInPageNavigation(this, password_form);
162 } 169 }
163 170
164 } // namespace password_manager 171 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698