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_ |