Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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_SAVE_PASSWORD_INFOBAR_H_ | |
| 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_SAVE_PASSWORD_INFOBAR_H_ | |
| 7 | |
| 8 #include "chrome/browser/password_manager/save_password_infobar_delegate.h" | |
| 9 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" | |
| 10 | |
| 11 class SavePasswordInfoBar : public ConfirmInfoBar { | |
|
gone
2015/03/02 17:39:38
add a comment describing the class
melandory
2015/03/03 11:55:47
Done.
| |
| 12 public: | |
| 13 explicit SavePasswordInfoBar( | |
| 14 scoped_ptr<SavePasswordInfoBarDelegate> delegate); | |
| 15 | |
| 16 ~SavePasswordInfoBar() override; | |
| 17 | |
| 18 private: | |
| 19 // ConfirmInfoBar: | |
| 20 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( | |
| 21 JNIEnv* env) override; | |
| 22 | |
| 23 SavePasswordInfoBarDelegate* GetDelegate(); | |
| 24 | |
| 25 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBar); | |
| 26 }; | |
| 27 | |
| 28 bool RegisterSavePasswordInfoBar(JNIEnv* env); | |
|
Bernhard Bauer
2015/03/02 10:28:09
You could move this into the class as a static met
gone
2015/03/02 17:39:38
Supposed to be called from chrome_jni_registrar.
melandory
2015/03/03 11:55:47
Done.
| |
| 29 | |
| 30 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_SAVE_PASSWORD_INFOBAR_H_ | |
| OLD | NEW |