diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-24 08:32:55 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-24 08:32:55 +0000 |
commit | 2609bc107a31083c6c88e207d13eaa029d594235 (patch) | |
tree | 8331e468eb82a2a9611f388349da4f3565ee3201 /chrome/browser/autofill/autofill_manager.h | |
parent | 51552aae65a96d19e1adcbf6fe760f102b53a8bf (diff) | |
download | chromium_src-2609bc107a31083c6c88e207d13eaa029d594235.zip chromium_src-2609bc107a31083c6c88e207d13eaa029d594235.tar.gz chromium_src-2609bc107a31083c6c88e207d13eaa029d594235.tar.bz2 |
Add the ability to save and remove AutoFill profiles from the AutoFillDialog.
BUG=18201
TEST=PersonalDataManagerTest.SetProfiles
Review URL: http://codereview.chromium.org/545175
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_manager.h')
-rw-r--r-- | chrome/browser/autofill/autofill_manager.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/chrome/browser/autofill/autofill_manager.h b/chrome/browser/autofill/autofill_manager.h index eb53517..85905c8 100644 --- a/chrome/browser/autofill/autofill_manager.h +++ b/chrome/browser/autofill/autofill_manager.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -9,6 +9,7 @@ #include "base/scoped_ptr.h" #include "chrome/browser/autofill/autofill_dialog.h" +#include "chrome/browser/autofill/personal_data_manager.h" #include "chrome/browser/renderer_host/render_view_host_delegate.h" namespace webkit_glue { @@ -19,14 +20,14 @@ class AutoFillInfoBarDelegate; class AutoFillProfile; class CreditCard; class FormStructure; -class PersonalDataManager; class PrefService; class TabContents; // Manages saving and restoring the user's personal information entered into web // forms. class AutoFillManager : public RenderViewHostDelegate::AutoFill, - AutoFillDialogObserver { + public AutoFillDialogObserver, + public PersonalDataManager::Observer { public: explicit AutoFillManager(TabContents* tab_contents); virtual ~AutoFillManager(); @@ -40,8 +41,11 @@ class AutoFillManager : public RenderViewHostDelegate::AutoFill, // AutoFillDialogObserver implementation: virtual void OnAutoFillDialogApply( - const std::vector<AutoFillProfile>& profiles, - const std::vector<CreditCard>& credit_cards); + std::vector<AutoFillProfile>* profiles, + std::vector<CreditCard>* credit_cards); + + // PersonalDataManager::Observer implementation: + virtual void OnPersonalDataLoaded(); // Uses heuristics and existing personal data to determine the possible field // types. |