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