| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/timer/elapsed_timer.h" | 10 #include "base/timer/elapsed_timer.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 content::WebContents* web_contents, | 40 content::WebContents* web_contents, |
| 41 scoped_ptr<password_manager::PasswordFormManager> form_to_save, | 41 scoped_ptr<password_manager::PasswordFormManager> form_to_save, |
| 42 const std::string& uma_histogram_suffix, | 42 const std::string& uma_histogram_suffix, |
| 43 password_manager::CredentialSourceType source_type); | 43 password_manager::CredentialSourceType source_type); |
| 44 | 44 |
| 45 ~SavePasswordInfoBarDelegate() override; | 45 ~SavePasswordInfoBarDelegate() override; |
| 46 | 46 |
| 47 base::string16 GetFirstRunExperienceMessage(); | 47 base::string16 GetFirstRunExperienceMessage(); |
| 48 | 48 |
| 49 // ConfirmInfoBarDelegate: | 49 // ConfirmInfoBarDelegate: |
| 50 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
| 50 void InfoBarDismissed() override; | 51 void InfoBarDismissed() override; |
| 51 base::string16 GetButtonLabel(InfoBarButton button) const override; | 52 base::string16 GetButtonLabel(InfoBarButton button) const override; |
| 52 bool Accept() override; | 53 bool Accept() override; |
| 53 bool Cancel() override; | 54 bool Cancel() override; |
| 54 | 55 |
| 55 protected: | 56 protected: |
| 56 // Makes a ctor available in tests. | 57 // Makes a ctor available in tests. |
| 57 SavePasswordInfoBarDelegate( | 58 SavePasswordInfoBarDelegate( |
| 58 content::WebContents* web_contents, | 59 content::WebContents* web_contents, |
| 59 scoped_ptr<password_manager::PasswordFormManager> form_to_save, | 60 scoped_ptr<password_manager::PasswordFormManager> form_to_save, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBarDelegate); | 90 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBarDelegate); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 // Creates the platform-specific SavePassword InfoBar. This function is defined | 93 // Creates the platform-specific SavePassword InfoBar. This function is defined |
| 93 // in platform-specific .cc (or .mm) files. | 94 // in platform-specific .cc (or .mm) files. |
| 94 scoped_ptr<infobars::InfoBar> CreateSavePasswordInfoBar( | 95 scoped_ptr<infobars::InfoBar> CreateSavePasswordInfoBar( |
| 95 scoped_ptr<SavePasswordInfoBarDelegate> delegate); | 96 scoped_ptr<SavePasswordInfoBarDelegate> delegate); |
| 96 | 97 |
| 97 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_ | 98 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SAVE_PASSWORD_INFOBAR_DELEGATE_H_ |
| OLD | NEW |