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

Side by Side 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: cleaning 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 unified diff | Download patch
OLDNEW
(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 private:
31 // ConfirmInfoBar:
32 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
33 JNIEnv* env) override;
34
35 DISALLOW_COPY_AND_ASSIGN(AutofillCreditCardFillingInfoBar);
36 };
37
38 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_CREDIT_CARD_FILLING_INFOB AR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698