| 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_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDROID
_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDROID
_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDROID
_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDROID
_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" | 10 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" |
| 11 #include "components/infobars/core/infobar_delegate.h" | 11 #include "components/infobars/core/infobar_delegate.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 class WebContents; | 14 class WebContents; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace password_manager { | 17 namespace password_manager { |
| 18 enum class CredentialType : unsigned int; | 18 enum class CredentialType; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace autofill { | 21 namespace autofill { |
| 22 struct PasswordForm; | 22 struct PasswordForm; |
| 23 } | 23 } |
| 24 | 24 |
| 25 // Android-only infobar to notify that the generated password was saved. | 25 // Android-only infobar to notify that the generated password was saved. |
| 26 class AccountChooserInfoBarDelegateAndroid : public infobars::InfoBarDelegate { | 26 class AccountChooserInfoBarDelegateAndroid : public infobars::InfoBarDelegate { |
| 27 public: | 27 public: |
| 28 // Creates and shows the infobar. Implemented in the platform-specific file. | 28 // Creates and shows the infobar. Implemented in the platform-specific file. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 50 // TODO(melandory): It looks like ManagePasswordUIController has logic which | 50 // TODO(melandory): It looks like ManagePasswordUIController has logic which |
| 51 // should be extracted from it (storing data, propagating user actions), as | 51 // should be extracted from it (storing data, propagating user actions), as |
| 52 // for example TranslateUIDelegate does it. | 52 // for example TranslateUIDelegate does it. |
| 53 // AccountChooserInfoBarDelegateAndroid doesn't own this pointer. | 53 // AccountChooserInfoBarDelegateAndroid doesn't own this pointer. |
| 54 ManagePasswordsUIController* ui_controller_; | 54 ManagePasswordsUIController* ui_controller_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(AccountChooserInfoBarDelegateAndroid); | 56 DISALLOW_COPY_AND_ASSIGN(AccountChooserInfoBarDelegateAndroid); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 #endif // CHROME_BROWSER_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDR
OID_H_ | 59 #endif // CHROME_BROWSER_PASSWORD_MANAGER_ACCOUNT_CHOOSER_INFOBAR_DELEGATE_ANDR
OID_H_ |
| OLD | NEW |