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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Notifies the driver that the user has accepted a generated password. | 56 // Notifies the driver that the user has accepted a generated password. |
57 virtual void GeneratedPasswordAccepted(const base::string16& password) = 0; | 57 virtual void GeneratedPasswordAccepted(const base::string16& password) = 0; |
58 | 58 |
59 // Tells the driver to fill the form with the |username| and |password|. | 59 // Tells the driver to fill the form with the |username| and |password|. |
60 virtual void FillSuggestion(const base::string16& username, | 60 virtual void FillSuggestion(const base::string16& username, |
61 const base::string16& password) = 0; | 61 const base::string16& password) = 0; |
62 | 62 |
63 // Tells the driver to preview filling form with the |username| and | 63 // Tells the driver to preview filling form with the |username| and |
64 // |password|. | 64 // |password|. |
65 virtual void PreviewSuggestion(const base::string16& username, | 65 virtual void PreviewSuggestion(const base::string16& username, |
66 const base::string16& password) = 0; | 66 const base::string16& password, |
| 67 size_t match_start) = 0; |
67 | 68 |
68 // Tells the driver to clear previewed password and username fields. | 69 // Tells the driver to clear previewed password and username fields. |
69 virtual void ClearPreviewedForm() = 0; | 70 virtual void ClearPreviewedForm() = 0; |
70 | 71 |
71 // Tells the driver to find the focused password field and report back | 72 // Tells the driver to find the focused password field and report back |
72 // the corresponding password form, so that it can be saved. | 73 // the corresponding password form, so that it can be saved. |
73 virtual void ForceSavePassword() {} | 74 virtual void ForceSavePassword() {} |
74 | 75 |
75 // Returns the PasswordGenerationManager associated with this instance. | 76 // Returns the PasswordGenerationManager associated with this instance. |
76 virtual PasswordGenerationManager* GetPasswordGenerationManager() = 0; | 77 virtual PasswordGenerationManager* GetPasswordGenerationManager() = 0; |
77 | 78 |
78 // Returns the PasswordManager associated with this instance. | 79 // Returns the PasswordManager associated with this instance. |
79 virtual PasswordManager* GetPasswordManager() = 0; | 80 virtual PasswordManager* GetPasswordManager() = 0; |
80 | 81 |
81 // Returns the PasswordAutofillManager associated with this instance. | 82 // Returns the PasswordAutofillManager associated with this instance. |
82 virtual PasswordAutofillManager* GetPasswordAutofillManager() = 0; | 83 virtual PasswordAutofillManager* GetPasswordAutofillManager() = 0; |
83 | 84 |
84 private: | 85 private: |
85 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); | 86 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); |
86 }; | 87 }; |
87 | 88 |
88 } // namespace password_manager | 89 } // namespace password_manager |
89 | 90 |
90 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ | 91 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ |
OLD | NEW |