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

Unified Diff: chrome/browser/ui/android/infobars/autofill_assist_infobar.h

Issue 2026353002: [Autofill] Credit Card Assist Infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed more comments Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698