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

Unified Diff: chrome/browser/autofill/autofill_manager.cc

Issue 9600038: Add Password Autofill Manager to New Autofill (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill_manager.cc
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
index f9219576720f88fcba6bf4d9e9f8bc383ae9dc1d..b4287276952765aa2166aba230bfaa3bbe1f54a1 100644
--- a/chrome/browser/autofill/autofill_manager.cc
+++ b/chrome/browser/autofill/autofill_manager.cc
@@ -57,6 +57,7 @@
#include "webkit/forms/form_data.h"
#include "webkit/forms/form_data_predictions.h"
#include "webkit/forms/form_field.h"
+#include "webkit/forms/password_form_dom_manager.h"
using base::TimeTicks;
using content::BrowserThread;
@@ -317,6 +318,10 @@ bool AutofillManager::OnMessageReceived(const IPC::Message& message) {
OnDidEndTextFieldEditing)
IPC_MESSAGE_HANDLER(AutofillHostMsg_HideAutofillPopup,
OnHideAutofillPopup)
+ IPC_MESSAGE_HANDLER(AutofillHostMsg_FrameClosing,
+ OnFrameClosing)
+ IPC_MESSAGE_HANDLER(AutofillHostMsg_FillPasswordForm,
+ OnFillPasswordForm)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -690,6 +695,20 @@ void AutofillManager::OnHideAutofillPopup() {
external_delegate_->HideAutofillPopup();
}
+void AutofillManager::OnFrameClosing(int frame_id) {
+ if (external_delegate_)
+ external_delegate_->FrameClosing(frame_id);
+}
+
+void AutofillManager::OnFillPasswordForm(
+ const webkit::forms::FormField& form,
+ const webkit::forms::PasswordFormFillData fill_data,
+ int frame_id) {
+ if (external_delegate_)
+ external_delegate_->FillPasswordForm(form, fill_data, frame_id);
+}
+
+
void AutofillManager::OnLoadedServerPredictions(
const std::string& response_xml) {
// Parse and store the server predictions.

Powered by Google App Engine
This is Rietveld 408576698