| 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_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // PasswordsClientUIDelegate: | 47 // PasswordsClientUIDelegate: |
| 48 void OnPasswordSubmitted( | 48 void OnPasswordSubmitted( |
| 49 std::unique_ptr<password_manager::PasswordFormManager> form_manager) | 49 std::unique_ptr<password_manager::PasswordFormManager> form_manager) |
| 50 override; | 50 override; |
| 51 void OnUpdatePasswordSubmitted( | 51 void OnUpdatePasswordSubmitted( |
| 52 std::unique_ptr<password_manager::PasswordFormManager> form_manager) | 52 std::unique_ptr<password_manager::PasswordFormManager> form_manager) |
| 53 override; | 53 override; |
| 54 bool OnChooseCredentials( | 54 bool OnChooseCredentials( |
| 55 std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials, | 55 std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials, |
| 56 std::vector<std::unique_ptr<autofill::PasswordForm>> | |
| 57 federated_credentials, | |
| 58 const GURL& origin, | 56 const GURL& origin, |
| 59 const ManagePasswordsState::CredentialsCallback& callback) override; | 57 const ManagePasswordsState::CredentialsCallback& callback) override; |
| 60 void OnAutoSignin( | 58 void OnAutoSignin( |
| 61 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, | 59 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, |
| 62 const GURL& origin) override; | 60 const GURL& origin) override; |
| 63 void OnPromptEnableAutoSignin() override; | 61 void OnPromptEnableAutoSignin() override; |
| 64 void OnAutomaticPasswordSave( | 62 void OnAutomaticPasswordSave( |
| 65 std::unique_ptr<password_manager::PasswordFormManager> form_manager) | 63 std::unique_ptr<password_manager::PasswordFormManager> form_manager) |
| 66 override; | 64 override; |
| 67 void OnPasswordAutofilled( | 65 void OnPasswordAutofilled( |
| (...skipping 18 matching lines...) Expand all Loading... |
| 86 base::WeakPtr<PasswordsModelDelegate> GetModelDelegateProxy(); | 84 base::WeakPtr<PasswordsModelDelegate> GetModelDelegateProxy(); |
| 87 | 85 |
| 88 // PasswordsModelDelegate: | 86 // PasswordsModelDelegate: |
| 89 content::WebContents* GetWebContents() const override; | 87 content::WebContents* GetWebContents() const override; |
| 90 const GURL& GetOrigin() const override; | 88 const GURL& GetOrigin() const override; |
| 91 password_manager::ui::State GetState() const override; | 89 password_manager::ui::State GetState() const override; |
| 92 const autofill::PasswordForm& GetPendingPassword() const override; | 90 const autofill::PasswordForm& GetPendingPassword() const override; |
| 93 bool IsPasswordOverridden() const override; | 91 bool IsPasswordOverridden() const override; |
| 94 const std::vector<std::unique_ptr<autofill::PasswordForm>>& GetCurrentForms() | 92 const std::vector<std::unique_ptr<autofill::PasswordForm>>& GetCurrentForms() |
| 95 const override; | 93 const override; |
| 96 const std::vector<std::unique_ptr<autofill::PasswordForm>>& | |
| 97 GetFederatedForms() const override; | |
| 98 const password_manager::InteractionsStats* GetCurrentInteractionStats() | 94 const password_manager::InteractionsStats* GetCurrentInteractionStats() |
| 99 const override; | 95 const override; |
| 100 void OnBubbleShown() override; | 96 void OnBubbleShown() override; |
| 101 void OnBubbleHidden() override; | 97 void OnBubbleHidden() override; |
| 102 void OnNoInteractionOnUpdate() override; | 98 void OnNoInteractionOnUpdate() override; |
| 103 void OnNopeUpdateClicked() override; | 99 void OnNopeUpdateClicked() override; |
| 104 void NeverSavePassword() override; | 100 void NeverSavePassword() override; |
| 105 void SavePassword() override; | 101 void SavePassword() override; |
| 106 void UpdatePassword(const autofill::PasswordForm& password_form) override; | 102 void UpdatePassword(const autofill::PasswordForm& password_form) override; |
| 107 void ChooseCredential( | 103 void ChooseCredential( |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // Thus, OnBubbleHidden() can be called after the new one is shown. By that | 186 // Thus, OnBubbleHidden() can be called after the new one is shown. By that |
| 191 // time the internal state of ManagePasswordsUIController has nothing to do | 187 // time the internal state of ManagePasswordsUIController has nothing to do |
| 192 // with the old bubble. | 188 // with the old bubble. |
| 193 // Invalidating all the weak pointers will detach the current bubble. | 189 // Invalidating all the weak pointers will detach the current bubble. |
| 194 base::WeakPtrFactory<ManagePasswordsUIController> weak_ptr_factory_; | 190 base::WeakPtrFactory<ManagePasswordsUIController> weak_ptr_factory_; |
| 195 | 191 |
| 196 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); | 192 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); |
| 197 }; | 193 }; |
| 198 | 194 |
| 199 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 195 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| OLD | NEW |