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

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: Reviewer's comments addressed 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/form_data_predictions.h"
9 #include "components/autofill/core/common/password_form.h" 10 #include "components/autofill/core/common/password_form.h"
10 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h" 11 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h"
11 #include "components/password_manager/core/browser/password_manager_client.h" 12 #include "components/password_manager/core/browser/password_manager_client.h"
12 #include "content/public/browser/browser_context.h" 13 #include "content/public/browser/browser_context.h"
13 #include "content/public/browser/navigation_details.h" 14 #include "content/public/browser/navigation_details.h"
14 #include "content/public/browser/navigation_entry.h" 15 #include "content/public/browser/navigation_entry.h"
15 #include "content/public/browser/render_frame_host.h" 16 #include "content/public/browser/render_frame_host.h"
16 #include "content/public/browser/render_view_host.h" 17 #include "content/public/browser/render_view_host.h"
17 #include "content/public/browser/site_instance.h" 18 #include "content/public/browser/site_instance.h"
18 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), form)); 61 host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), form));
61 } 62 }
62 63
63 void ContentPasswordManagerDriver::AccountCreationFormsFound( 64 void ContentPasswordManagerDriver::AccountCreationFormsFound(
64 const std::vector<autofill::FormData>& forms) { 65 const std::vector<autofill::FormData>& forms) {
65 content::RenderFrameHost* host = render_frame_host_; 66 content::RenderFrameHost* host = render_frame_host_;
66 host->Send(new AutofillMsg_AccountCreationFormsDetected(host->GetRoutingID(), 67 host->Send(new AutofillMsg_AccountCreationFormsDetected(host->GetRoutingID(),
67 forms)); 68 forms));
68 } 69 }
69 70
71 void ContentPasswordManagerDriver::AutofillDataReceived(
72 const std::vector<autofill::FormDataPredictions>& forms) {
73 content::RenderFrameHost* host = render_frame_host_;
74 host->Send(new AutofillMsg_AutofillPasswordDataReceived(host->GetRoutingID(),
75 forms));
76 }
77
70 void ContentPasswordManagerDriver::GeneratedPasswordAccepted( 78 void ContentPasswordManagerDriver::GeneratedPasswordAccepted(
71 const base::string16& password) { 79 const base::string16& password) {
72 content::RenderFrameHost* host = render_frame_host_; 80 content::RenderFrameHost* host = render_frame_host_;
73 host->Send(new AutofillMsg_GeneratedPasswordAccepted(host->GetRoutingID(), 81 host->Send(new AutofillMsg_GeneratedPasswordAccepted(host->GetRoutingID(),
74 password)); 82 password));
75 } 83 }
76 84
77 void ContentPasswordManagerDriver::FillSuggestion( 85 void ContentPasswordManagerDriver::FillSuggestion(
78 const base::string16& username, 86 const base::string16& username,
79 const base::string16& password) { 87 const base::string16& password) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 GetPasswordAutofillManager()->DidNavigateMainFrame(); 163 GetPasswordAutofillManager()->DidNavigateMainFrame();
156 } 164 }
157 } 165 }
158 166
159 void ContentPasswordManagerDriver::OnInPageNavigation( 167 void ContentPasswordManagerDriver::OnInPageNavigation(
160 const autofill::PasswordForm& password_form) { 168 const autofill::PasswordForm& password_form) {
161 GetPasswordManager()->OnInPageNavigation(this, password_form); 169 GetPasswordManager()->OnInPageNavigation(this, password_form);
162 } 170 }
163 171
164 } // namespace password_manager 172 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698