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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.h

Issue 710453002: [Autofill] Componentize AutofillCCInfoBarDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Return nullptr for CreateInfoBar() in test_autofill_client.cc. 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: chrome/browser/ui/autofill/chrome_autofill_client.h
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.h b/chrome/browser/ui/autofill/chrome_autofill_client.h
index 09d346a81f7be91f90a6f5c6e2d2ba8f71b7d553..82b7555e557aa330b7c3246f18fc598508385cdf 100644
--- a/chrome/browser/ui/autofill/chrome_autofill_client.h
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.h
@@ -8,21 +8,29 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/i18n/rtl.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/ui/zoom/zoom_observer.h"
#include "components/autofill/core/browser/autofill_client.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_user_data.h"
+class ConfirmInfoBarDelegate;
+
namespace content {
struct FrameNavigateParams;
struct LoadCommittedDetails;
class WebContents;
}
+namespace infobars {
+class InfoBar;
+}
+
namespace autofill {
class AutofillDialogController;
+class AutofillManager;
Ilya Sherman 2014/12/03 20:00:20 nit: Alphabetize, please.
Pritam Nikam 2014/12/04 15:37:30 Done.
class AutofillKeystoneBridgeWrapper;
class AutofillPopupControllerImpl;
class CreditCardScannerController;
@@ -46,7 +54,8 @@ class ChromeAutofillClient
PrefService* GetPrefs() override;
void HideRequestAutocompleteDialog() override;
void ShowAutofillSettings() override;
- void ConfirmSaveCreditCard(const AutofillMetrics& metric_logger,
+ void ConfirmSaveCreditCard(AutofillManager* autofill_manager,
+ const AutofillMetrics& metric_logger,
const base::Closure& save_card_callback) override;
bool HasCreditCardScanFeature() override;
void ScanCreditCard(const CreditCardScanCallback& callback) override;
@@ -70,6 +79,8 @@ class ChromeAutofillClient
const std::vector<autofill::FormStructure*>& forms) override;
void DidFillOrPreviewField(const base::string16& autofilled_value,
const base::string16& profile_full_name) override;
+ scoped_ptr<infobars::InfoBar> CreateInfoBar(
+ scoped_ptr<ConfirmInfoBarDelegate> delegate) override;
// content::WebContentsObserver implementation.
void WebContentsDestroyed() override;

Powered by Google App Engine
This is Rietveld 408576698