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

Unified Diff: components/autofill/core/browser/autofill_client.h

Issue 710453002: [Autofill] Componentize AutofillCCInfoBarDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses Sylvain's review comments. Created 6 years 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: components/autofill/core/browser/autofill_client.h
diff --git a/components/autofill/core/browser/autofill_client.h b/components/autofill/core/browser/autofill_client.h
index 6ffcd7066c046bce89f975dae5fdf88b2e4afbaf..42296e39a368789f1b5fd47a75bf84166180be22 100644
--- a/components/autofill/core/browser/autofill_client.h
+++ b/components/autofill/core/browser/autofill_client.h
@@ -21,6 +21,10 @@ class Rect;
class RectF;
}
+namespace infobars {
+class InfoBarManager;
+}
+
class GURL;
class PrefService;
@@ -80,11 +84,6 @@ class AutofillClient {
// information to proceed.
virtual void ShowUnmaskPrompt() = 0;
- // Run |save_card_callback| if the credit card should be imported as personal
- // data. |metric_logger| can be used to log user actions.
- virtual void ConfirmSaveCreditCard(
- const base::Closure& save_card_callback) = 0;
-
// Returns true if both the platform and the device support scanning credit
// cards. Should be called before ScanCreditCard().
virtual bool HasCreditCardScanFeature() = 0;
@@ -133,6 +132,9 @@ class AutofillClient {
// Informs the client that a user gesture has been observed.
virtual void OnFirstUserGestureObserved() = 0;
+
+ // Returns the |InfoBarManager| instance associated with the client.
Peter Kasting 2014/12/23 21:20:34 Nit: No ||
Pritam Nikam 2014/12/24 11:16:57 Done.
+ virtual infobars::InfoBarManager* GetInfoBarManager() = 0;
Peter Kasting 2014/12/23 21:20:35 Nit: I'd put this up with the other "Gets the X as
Pritam Nikam 2014/12/24 11:16:57 Done.
};
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698