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

Unified Diff: chrome/browser/ui/android/infobars/autofill_credit_card_filling_infobar.h

Issue 2026353002: [Autofill] Credit Card Assist Infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed CreateCreditCardFillingInfoBar from interface Created 4 years, 4 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/ui/android/infobars/autofill_credit_card_filling_infobar.h
diff --git a/chrome/browser/ui/android/infobars/autofill_credit_card_filling_infobar.h b/chrome/browser/ui/android/infobars/autofill_credit_card_filling_infobar.h
new file mode 100644
index 0000000000000000000000000000000000000000..aa262bdd676d2bd2bb36401c73b1c793b9b0ca6b
--- /dev/null
+++ b/chrome/browser/ui/android/infobars/autofill_credit_card_filling_infobar.h
@@ -0,0 +1,41 @@
+// Copyright 2016 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.
+
+#ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_CREDIT_CARD_FILLING_INFOBAR_H_
+#define CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_CREDIT_CARD_FILLING_INFOBAR_H_
+
+#include <jni.h>
+
+#include <memory>
+
+#include "base/macros.h"
+#include "chrome/browser/ui/android/infobars/confirm_infobar.h"
+
+namespace autofill {
+class AutofillCreditCardFillingInfoBarDelegateMobile;
+}
+
+// Android implementation of the infobar for credit card assisted filling, which
+// proposes to autofill user data into the detected credit card form in the
+// page. Upon accepting the infobar, the form is filled automatically. If
+// the infobar is dismissed, nothing happens.
+class AutofillCreditCardFillingInfoBar : public ConfirmInfoBar {
+ public:
+ explicit AutofillCreditCardFillingInfoBar(
+ std::unique_ptr<autofill::AutofillCreditCardFillingInfoBarDelegateMobile>
+ delegate);
+ ~AutofillCreditCardFillingInfoBar() override;
+
+ // Registers the JNI bindings.
+ static bool Register(JNIEnv* env);
+
+ private:
+ // ConfirmInfoBar:
+ base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
+ JNIEnv* env) override;
+
+ DISALLOW_COPY_AND_ASSIGN(AutofillCreditCardFillingInfoBar);
+};
+
+#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_CREDIT_CARD_FILLING_INFOBAR_H_

Powered by Google App Engine
This is Rietveld 408576698