OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_SAVE_PASSWORD_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_SAVE_PASSWORD_INFOBAR_H_ |
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_SAVE_PASSWORD_INFOBAR_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_SAVE_PASSWORD_INFOBAR_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/password_manager/save_password_infobar_delegate.h" | 9 #include "chrome/browser/password_manager/save_password_infobar_delegate.h" |
10 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" | 10 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
11 | 11 |
12 // The Android infobar that offers the user the ability to save a password | 12 // The Android infobar that offers the user the ability to save a password |
13 // for the site. | 13 // for the site. |
14 class SavePasswordInfoBar : public ConfirmInfoBar { | 14 class SavePasswordInfoBar : public ConfirmInfoBar { |
15 public: | 15 public: |
16 explicit SavePasswordInfoBar( | 16 explicit SavePasswordInfoBar( |
17 scoped_ptr<SavePasswordInfoBarDelegate> delegate); | 17 std::unique_ptr<SavePasswordInfoBarDelegate> delegate); |
18 | 18 |
19 ~SavePasswordInfoBar() override; | 19 ~SavePasswordInfoBar() override; |
20 | 20 |
21 static bool Register(JNIEnv* env); | 21 static bool Register(JNIEnv* env); |
22 | 22 |
23 private: | 23 private: |
24 // ConfirmInfoBar: | 24 // ConfirmInfoBar: |
25 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( | 25 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
26 JNIEnv* env) override; | 26 JNIEnv* env) override; |
27 void OnLinkClicked(JNIEnv* env, | 27 void OnLinkClicked(JNIEnv* env, |
28 const base::android::JavaParamRef<jobject>& obj) override; | 28 const base::android::JavaParamRef<jobject>& obj) override; |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBar); | 30 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBar); |
31 }; | 31 }; |
32 | 32 |
33 | 33 |
34 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_SAVE_PASSWORD_INFOBAR_H_ | 34 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_SAVE_PASSWORD_INFOBAR_H_ |
OLD | NEW |