| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <vector> | 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "chrome/browser/ui/passwords/password_dialog_controller.h" | 12 #include "chrome/browser/ui/passwords/password_dialog_controller.h" |
| 13 | 13 |
| 14 class AccountChooserPrompt; | 14 class AccountChooserPrompt; |
| 15 class AutoSigninFirstRunPrompt; | 15 class AutoSigninFirstRunPrompt; |
| 16 class PasswordsModelDelegate; | 16 class PasswordsModelDelegate; |
| 17 class Profile; | 17 class Profile; |
| 18 | 18 |
| 19 // A UI controller responsible for the account chooser dialog and autosignin | 19 // A UI controller responsible for the account chooser dialog and autosignin |
| 20 // first run promo. | 20 // first run promo. |
| 21 class PasswordDialogControllerImpl : public PasswordDialogController { | 21 class PasswordDialogControllerImpl : public PasswordDialogController { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 48 void OnCloseDialog() override; | 48 void OnCloseDialog() override; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 // Release |current_dialog_| and close the open dialog. | 51 // Release |current_dialog_| and close the open dialog. |
| 52 void ResetDialog(); | 52 void ResetDialog(); |
| 53 | 53 |
| 54 Profile* const profile_; | 54 Profile* const profile_; |
| 55 PasswordsModelDelegate* const delegate_; | 55 PasswordsModelDelegate* const delegate_; |
| 56 AccountChooserPrompt* account_chooser_dialog_; | 56 AccountChooserPrompt* account_chooser_dialog_; |
| 57 AutoSigninFirstRunPrompt* autosignin_dialog_; | 57 AutoSigninFirstRunPrompt* autosignin_dialog_; |
| 58 std::vector<scoped_ptr<autofill::PasswordForm>> local_credentials_; | 58 std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials_; |
| 59 std::vector<scoped_ptr<autofill::PasswordForm>> federated_credentials_; | 59 std::vector<std::unique_ptr<autofill::PasswordForm>> federated_credentials_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(PasswordDialogControllerImpl); | 61 DISALLOW_COPY_AND_ASSIGN(PasswordDialogControllerImpl); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ | 64 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |