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

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: Hiding renderer popup 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 571e05f3f09cfb1485277aabbed70caa556b2b9d..a5d9aafd406de252bff8a5b601d9c0238a861c3a 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;
@@ -318,6 +319,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()
@@ -691,6 +696,20 @@ void AutofillManager::OnHideAutofillPopup() {
external_delegate_->HideAutofillPopup();
}
+void AutofillManager::OnFrameClosing(int frame_id) {
Ilya Sherman 2012/03/08 23:22:14 nit: int -> long long?
csharp 2012/03/09 16:20:19 removed
+ 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) {
Ilya Sherman 2012/03/08 23:22:14 nit: int -> long long?
csharp 2012/03/09 16:20:19 removed
+ 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