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_ASSIST_INFOBAR_H_ | |
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_ASSIST_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 AutofillAssistInfoBarDelegateMobile; | |
17 } | |
18 | |
19 // 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.
| |
20 class AutofillAssistInfoBar : public ConfirmInfoBar { | |
21 public: | |
22 explicit AutofillAssistInfoBar( | |
23 std::unique_ptr<autofill::AutofillAssistInfoBarDelegateMobile> delegate); | |
24 ~AutofillAssistInfoBar() override; | |
25 | |
26 // Registers the JNI bindings. | |
27 static bool Register(JNIEnv* env); | |
28 | |
29 private: | |
30 // ConfirmInfoBar: | |
31 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( | |
32 JNIEnv* env) override; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(AutofillAssistInfoBar); | |
35 }; | |
36 | |
37 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_ASSIST_INFOBAR_H_ | |
OLD | NEW |