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

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

Issue 3149005: Fix for: Autofill on Windows does not work for the first autofillable page en... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager.h
===================================================================
--- chrome/browser/autofill/autofill_manager.h (revision 57242)
+++ chrome/browser/autofill/autofill_manager.h (working copy)
@@ -6,8 +6,9 @@
#define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
#pragma once
+#include <list>
+#include <string>
#include <vector>
-#include <string>
#include "base/scoped_ptr.h"
#include "base/scoped_vector.h"
@@ -34,7 +35,8 @@
// Manages saving and restoring the user's personal information entered into web
// forms.
class AutoFillManager : public RenderViewHostDelegate::AutoFill,
- public AutoFillDownloadManager::Observer {
+ public AutoFillDownloadManager::Observer,
+ public PersonalDataManager::Observer {
public:
explicit AutoFillManager(TabContents* tab_contents);
virtual ~AutoFillManager();
@@ -76,6 +78,9 @@
AutoFillDownloadManager::AutoFillRequestType request_type,
int http_error);
+ // PersonalDataManager::Observer implementation:
+ virtual void OnPersonalDataLoaded();
+
// Returns the value of the AutoFillEnabled pref.
virtual bool IsAutoFillEnabled() const;
@@ -202,6 +207,9 @@
// Our copy of the form data.
ScopedVector<FormStructure> form_structures_;
+ // Forms delayed for parsing, because personal data were not loaded yet.
+ std::list<std::vector<webkit_glue::FormData> > delayed_forms_;
+
// The form data the user has submitted.
scoped_ptr<FormStructure> upload_form_structure_;
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698