| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual void ChooseCredential( | 81 virtual void ChooseCredential( |
| 82 autofill::PasswordForm form, | 82 autofill::PasswordForm form, |
| 83 password_manager::CredentialType credential_type) = 0; | 83 password_manager::CredentialType credential_type) = 0; |
| 84 | 84 |
| 85 // Open a new tab pointing to passwords.google.com. | 85 // Open a new tab pointing to passwords.google.com. |
| 86 virtual void NavigateToExternalPasswordManager() = 0; | 86 virtual void NavigateToExternalPasswordManager() = 0; |
| 87 // Open a new tab, pointing to the Smart Lock help article. | 87 // Open a new tab, pointing to the Smart Lock help article. |
| 88 virtual void NavigateToSmartLockHelpPage() = 0; | 88 virtual void NavigateToSmartLockHelpPage() = 0; |
| 89 // Open a new tab, pointing to the password manager settings page. | 89 // Open a new tab, pointing to the password manager settings page. |
| 90 virtual void NavigateToPasswordManagerSettingsPage() = 0; | 90 virtual void NavigateToPasswordManagerSettingsPage() = 0; |
| 91 // Starts the Chrome Sign in flow. |
| 92 virtual void NavigateToChromeSignIn() = 0; |
| 91 | 93 |
| 92 // Called from the dialog controller when the dialog is hidden. | 94 // Called from the dialog controller when the dialog is hidden. |
| 93 virtual void OnDialogHidden() = 0; | 95 virtual void OnDialogHidden() = 0; |
| 94 | 96 |
| 95 protected: | 97 protected: |
| 96 virtual ~PasswordsModelDelegate() = default; | 98 virtual ~PasswordsModelDelegate() = default; |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 // Returns ManagePasswordsUIController instance for |contents| | 101 // Returns ManagePasswordsUIController instance for |contents| |
| 100 PasswordsModelDelegate* PasswordsModelDelegateFromWebContents( | 102 PasswordsModelDelegate* PasswordsModelDelegateFromWebContents( |
| 101 content::WebContents* web_contents); | 103 content::WebContents* web_contents); |
| 102 | 104 |
| 103 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ | 105 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ |
| OLD | NEW |