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_UPDATE_PASSWORD_INFOBAR_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_UPDATE_PASSWORD_INFOBAR_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chrome/browser/password_manager/update_password_infobar_delegate.h" |
| 10 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
| 11 |
| 12 // The Android infobar that offers the user the ability to update a password |
| 13 // for the site. |
| 14 class UpdatePasswordInfoBar : public ConfirmInfoBar { |
| 15 public: |
| 16 explicit UpdatePasswordInfoBar( |
| 17 scoped_ptr<UpdatePasswordInfoBarDelegate> delegate); |
| 18 |
| 19 ~UpdatePasswordInfoBar() override; |
| 20 |
| 21 void OnUpdateClicked(JNIEnv* env, jobject obj, jint form_id); |
| 22 |
| 23 static bool Register(JNIEnv* env); |
| 24 |
| 25 private: |
| 26 // ConfirmInfoBar: |
| 27 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
| 28 JNIEnv* env) override; |
| 29 |
| 30 void OnLinkClicked(JNIEnv* env, |
| 31 const base::android::JavaParamRef<jobject>& obj) override; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(UpdatePasswordInfoBar); |
| 34 }; |
| 35 |
| 36 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_UPDATE_PASSWORD_INFOBAR_H_ |
OLD | NEW |