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 "components/password_manager/core/common/credential_manager_types.h" | 10 #include "components/password_manager/core/common/credential_manager_types.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 virtual void SavePassword() = 0; | 73 virtual void SavePassword() = 0; |
74 | 74 |
75 // Called from the model when the user chooses to update a password. | 75 // Called from the model when the user chooses to update a password. |
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 model when the user chooses a credential. | 78 // Called from the model when the user chooses a credential. |
79 virtual void ChooseCredential( | 79 virtual void ChooseCredential( |
80 const autofill::PasswordForm& form, | 80 const autofill::PasswordForm& form, |
81 password_manager::CredentialType credential_type) = 0; | 81 password_manager::CredentialType credential_type) = 0; |
82 | 82 |
83 // Two different ways to open a new tab pointing to passwords.google.com. | 83 // Open a new tab pointing to passwords.google.com. |
84 // TODO(crbug.com/548259) eliminate one of them. | |
85 virtual void NavigateToExternalPasswordManager() = 0; | 84 virtual void NavigateToExternalPasswordManager() = 0; |
86 virtual void NavigateToSmartLockPage() = 0; | |
87 // Open a new tab, pointing to the Smart Lock help article. | 85 // Open a new tab, pointing to the Smart Lock help article. |
88 virtual void NavigateToSmartLockHelpPage() = 0; | 86 virtual void NavigateToSmartLockHelpPage() = 0; |
89 // Open a new tab, pointing to the password manager settings page. | 87 // Open a new tab, pointing to the password manager settings page. |
90 virtual void NavigateToPasswordManagerSettingsPage() = 0; | 88 virtual void NavigateToPasswordManagerSettingsPage() = 0; |
91 | 89 |
92 protected: | 90 protected: |
93 virtual ~PasswordsModelDelegate() = default; | 91 virtual ~PasswordsModelDelegate() = default; |
94 }; | 92 }; |
95 | 93 |
96 // Returns ManagePasswordsUIController instance for |contents| | 94 // Returns ManagePasswordsUIController instance for |contents| |
97 PasswordsModelDelegate* PasswordsModelDelegateFromWebContents( | 95 PasswordsModelDelegate* PasswordsModelDelegateFromWebContents( |
98 content::WebContents* web_contents); | 96 content::WebContents* web_contents); |
99 | 97 |
100 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ | 98 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ |
OLD | NEW |