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

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

Issue 1119004: Integration with Toolbar autofill servers.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/autofill/autofill_download.cc ('k') | 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 42124)
+++ chrome/browser/autofill/autofill_manager.h (working copy)
@@ -6,10 +6,12 @@
#define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
#include <vector>
+#include <string>
#include "base/scoped_ptr.h"
#include "base/scoped_vector.h"
#include "chrome/browser/autofill/autofill_dialog.h"
+#include "chrome/browser/autofill/autofill_download.h"
#include "chrome/browser/autofill/personal_data_manager.h"
#include "chrome/browser/renderer_host/render_view_host_delegate.h"
@@ -30,7 +32,8 @@
// forms.
class AutoFillManager : public RenderViewHostDelegate::AutoFill,
public AutoFillDialogObserver,
- public PersonalDataManager::Observer {
+ public PersonalDataManager::Observer,
+ public AutoFillDownloadManager::Observer {
public:
explicit AutoFillManager(TabContents* tab_contents);
virtual ~AutoFillManager();
@@ -73,6 +76,13 @@
// Resets the stored form data.
virtual void Reset();
+ // AutoFillDownloadManager::Observer implementation:
+ virtual void OnLoadedAutoFillHeuristics(const std::string& form_signature,
+ const std::string& heuristic_xml);
+ virtual void OnUploadedAutoFillHeuristics(const std::string& form_signature);
+ virtual void OnHeuristicsRequestError(const std::string& form_signature,
+ int http_error);
+
// Uses heuristics and existing personal data to determine the possible field
// types.
void DeterminePossibleFieldTypes(FormStructure* form_structure);
@@ -103,6 +113,9 @@
// May be NULL. NULL indicates OTR.
PersonalDataManager* personal_data_;
+ // Handles queries and uploads to AutoFill servers.
+ AutoFillDownloadManager download_manager_;
+
// Our copy of the form data.
ScopedVector<FormStructure> form_structures_;
« no previous file with comments | « chrome/browser/autofill/autofill_download.cc ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698