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