| 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_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 virtual void UpdatePassword(const autofill::PasswordForm& password_form) = 0; | 76 virtual void UpdatePassword(const autofill::PasswordForm& password_form) = 0; |
| 77 | 77 |
| 78 // Called from the dialog controller when the user chooses a credential. | 78 // Called from the dialog controller when the user chooses a credential. |
| 79 // Controller can be destroyed inside the method. | 79 // Controller can be destroyed inside the method. |
| 80 virtual void ChooseCredential( | 80 virtual void ChooseCredential( |
| 81 const autofill::PasswordForm& form, | 81 const autofill::PasswordForm& form, |
| 82 password_manager::CredentialType credential_type) = 0; | 82 password_manager::CredentialType credential_type) = 0; |
| 83 | 83 |
| 84 // Open a new tab, pointing to the Smart Lock help article. | 84 // Open a new tab, pointing to the Smart Lock help article. |
| 85 virtual void NavigateToSmartLockHelpPage() = 0; | 85 virtual void NavigateToSmartLockHelpPage() = 0; |
| 86 // Open a new tab, pointing to passwords.google.com. |
| 87 virtual void NavigateToPasswordManagerAccountDashboard() = 0; |
| 86 // Open a new tab, pointing to the password manager settings page. | 88 // Open a new tab, pointing to the password manager settings page. |
| 87 virtual void NavigateToPasswordManagerSettingsPage() = 0; | 89 virtual void NavigateToPasswordManagerSettingsPage() = 0; |
| 88 // Starts the Chrome Sign in flow. | 90 // Starts the Chrome Sign in flow. |
| 89 virtual void NavigateToChromeSignIn() = 0; | 91 virtual void NavigateToChromeSignIn() = 0; |
| 90 | 92 |
| 91 // Called from the dialog controller when the dialog is hidden. | 93 // Called from the dialog controller when the dialog is hidden. |
| 92 virtual void OnDialogHidden() = 0; | 94 virtual void OnDialogHidden() = 0; |
| 93 | 95 |
| 94 protected: | 96 protected: |
| 95 virtual ~PasswordsModelDelegate() = default; | 97 virtual ~PasswordsModelDelegate() = default; |
| 96 }; | 98 }; |
| 97 | 99 |
| 98 base::WeakPtr<PasswordsModelDelegate> | 100 base::WeakPtr<PasswordsModelDelegate> |
| 99 PasswordsModelDelegateFromWebContents(content::WebContents* web_contents); | 101 PasswordsModelDelegateFromWebContents(content::WebContents* web_contents); |
| 100 | 102 |
| 101 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ | 103 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ |
| OLD | NEW |