| 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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual void ShowInitialPasswordAccountSuggestions( | 71 virtual void ShowInitialPasswordAccountSuggestions( |
| 72 const autofill::PasswordFormFillData& form_data) = 0; | 72 const autofill::PasswordFormFillData& form_data) = 0; |
| 73 | 73 |
| 74 // Tells the driver to clear previewed password and username fields. | 74 // Tells the driver to clear previewed password and username fields. |
| 75 virtual void ClearPreviewedForm() = 0; | 75 virtual void ClearPreviewedForm() = 0; |
| 76 | 76 |
| 77 // Tells the driver to find the focused password field and report back | 77 // Tells the driver to find the focused password field and report back |
| 78 // the corresponding password form, so that it can be saved. | 78 // the corresponding password form, so that it can be saved. |
| 79 virtual void ForceSavePassword() {} | 79 virtual void ForceSavePassword() {} |
| 80 | 80 |
| 81 // Tells the driver to show the manual fallback for password saving, i.e. to |
| 82 // show the omnibox icon with anchored hidden save prompt. |
| 83 virtual void ShowManualFallbackForSaving(const autofill::PasswordForm& form) { |
| 84 } |
| 85 |
| 86 // Tells the driver to hide the manual fallback for saving. |
| 87 virtual void HideManualFallbackForSaving() {} |
| 88 |
| 81 // Tells the driver to find the focused password field and to show generation | 89 // Tells the driver to find the focused password field and to show generation |
| 82 // popup at it. | 90 // popup at it. |
| 83 virtual void GeneratePassword() {} | 91 virtual void GeneratePassword() {} |
| 84 | 92 |
| 85 // Returns the PasswordGenerationManager associated with this instance. | 93 // Returns the PasswordGenerationManager associated with this instance. |
| 86 virtual PasswordGenerationManager* GetPasswordGenerationManager() = 0; | 94 virtual PasswordGenerationManager* GetPasswordGenerationManager() = 0; |
| 87 | 95 |
| 88 // Returns the PasswordManager associated with this instance. | 96 // Returns the PasswordManager associated with this instance. |
| 89 virtual PasswordManager* GetPasswordManager() = 0; | 97 virtual PasswordManager* GetPasswordManager() = 0; |
| 90 | 98 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 104 // Return true iff the driver corresponds to the main frame. | 112 // Return true iff the driver corresponds to the main frame. |
| 105 virtual bool IsMainFrame() const = 0; | 113 virtual bool IsMainFrame() const = 0; |
| 106 | 114 |
| 107 private: | 115 private: |
| 108 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); | 116 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); |
| 109 }; | 117 }; |
| 110 | 118 |
| 111 } // namespace password_manager | 119 } // namespace password_manager |
| 112 | 120 |
| 113 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ | 121 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ |
| OLD | NEW |