OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_CREDIT_CARD_FILLING_INFOBAR_
H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_CREDIT_CARD_FILLING_INFOBAR_
H_ |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 #include <memory> |
| 11 |
| 12 #include "base/macros.h" |
| 13 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
| 14 |
| 15 namespace autofill { |
| 16 class AutofillCreditCardFillingInfoBarDelegateMobile; |
| 17 } |
| 18 |
| 19 // Android implementation of the infobar for credit card assisted filling, which |
| 20 // proposes to autofill user data into the detected credit card form in the |
| 21 // page. Upon accepting the infobar, the form is filled automatically. If |
| 22 // the infobar is dismissed, nothing happens. |
| 23 class AutofillCreditCardFillingInfoBar : public ConfirmInfoBar { |
| 24 public: |
| 25 explicit AutofillCreditCardFillingInfoBar( |
| 26 std::unique_ptr<autofill::AutofillCreditCardFillingInfoBarDelegateMobile> |
| 27 delegate); |
| 28 ~AutofillCreditCardFillingInfoBar() override; |
| 29 |
| 30 // Registers the JNI bindings. |
| 31 static bool Register(JNIEnv* env); |
| 32 |
| 33 private: |
| 34 // ConfirmInfoBar: |
| 35 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
| 36 JNIEnv* env) override; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(AutofillCreditCardFillingInfoBar); |
| 39 }; |
| 40 |
| 41 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_CREDIT_CARD_FILLING_INFOB
AR_H_ |
OLD | NEW |