Index: chrome/browser/ui/android/infobars/autofill_assist_infobar.h |
diff --git a/chrome/browser/ui/android/infobars/autofill_assist_infobar.h b/chrome/browser/ui/android/infobars/autofill_assist_infobar.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..29bd7ce3f9fd09c0ece5b85abeccc659b77fb59f |
--- /dev/null |
+++ b/chrome/browser/ui/android/infobars/autofill_assist_infobar.h |
@@ -0,0 +1,37 @@ |
+// 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_ASSIST_INFOBAR_H_ |
+#define CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_ASSIST_INFOBAR_H_ |
+ |
+#include <jni.h> |
+ |
+#include <memory> |
+ |
+#include "base/macros.h" |
+#include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
+ |
+namespace autofill { |
+class AutofillAssistInfoBarDelegateMobile; |
+} |
+ |
+// Android implementation of the infobar for saving credit card information. |
Peter Kasting
2016/07/29 21:26:34
Nit: Prefer to give more detail about what this in
Mathieu
2016/08/01 22:16:57
Done.
|
+class AutofillAssistInfoBar : public ConfirmInfoBar { |
+ public: |
+ explicit AutofillAssistInfoBar( |
+ std::unique_ptr<autofill::AutofillAssistInfoBarDelegateMobile> delegate); |
+ ~AutofillAssistInfoBar() override; |
+ |
+ // Registers the JNI bindings. |
+ static bool Register(JNIEnv* env); |
+ |
+ private: |
+ // ConfirmInfoBar: |
+ base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
+ JNIEnv* env) override; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AutofillAssistInfoBar); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_ASSIST_INFOBAR_H_ |