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

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

Issue 2949002: Add "save credit card info?" infobar for Autofill.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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.h
===================================================================
--- chrome/browser/autofill/autofill_manager.h (revision 51878)
+++ chrome/browser/autofill/autofill_manager.h (working copy)
@@ -15,6 +15,7 @@
#include "chrome/browser/autofill/personal_data_manager.h"
#include "chrome/browser/renderer_host/render_view_host_delegate.h"
+class AutoFillCCInfoBarDelegate;
class AutoFillProfile;
class CreditCard;
class FormStructure;
@@ -56,6 +57,10 @@
const string16& label);
virtual void ShowAutoFillDialog();
+ // Called by the AutoFillCCInfoBarDelegate when the user interacts with the
+ // infobar.
+ virtual void OnInfoBarClosed(bool should_save);
+
// Resets the stored form data.
virtual void Reset();
@@ -154,6 +159,9 @@
// The form data the user has submitted.
scoped_ptr<FormStructure> upload_form_structure_;
+ // The InfoBar that asks for permission to store credit card information.
+ scoped_ptr<AutoFillCCInfoBarDelegate> cc_infobar_;
+
DISALLOW_COPY_AND_ASSIGN(AutoFillManager);
};

Powered by Google App Engine
This is Rietveld 408576698