| 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..8a2a8d37c47cb764be069ffef6ecf5d82443bff7
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/android/infobars/autofill_credit_card_filling_infobar.h
|
| @@ -0,0 +1,38 @@
|
| +// 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;
|
| +
|
| + 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_
|
|
|