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 <vector> | 8 #include <vector> |
9 | 9 |
10 class PasswordGenerationManager; | 10 class PasswordGenerationManager; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // Returns the AutofillManager associated with this instance. | 44 // Returns the AutofillManager associated with this instance. |
45 virtual autofill::AutofillManager* GetAutofillManager() = 0; | 45 virtual autofill::AutofillManager* GetAutofillManager() = 0; |
46 | 46 |
47 // Informs the driver that |form| can be used for password generation. | 47 // Informs the driver that |form| can be used for password generation. |
48 virtual void AllowPasswordGenerationForForm(autofill::PasswordForm* form) = 0; | 48 virtual void AllowPasswordGenerationForForm(autofill::PasswordForm* form) = 0; |
49 | 49 |
50 // Notifies the driver that account creation |forms| were found. | 50 // Notifies the driver that account creation |forms| were found. |
51 virtual void AccountCreationFormsFound( | 51 virtual void AccountCreationFormsFound( |
52 const std::vector<autofill::FormData>& forms) = 0; | 52 const std::vector<autofill::FormData>& forms) = 0; |
53 | 53 |
| 54 // Tells the renderer to accept the password autofill suggestion for |
| 55 // |username|. |
| 56 virtual void RendererShouldAcceptPasswordAutofillSuggestion( |
| 57 const base::string16& username, |
| 58 const base::string16& password) = 0; |
| 59 |
54 private: | 60 private: |
55 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); | 61 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); |
56 }; | 62 }; |
57 | 63 |
58 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ | 64 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ |
OLD | NEW |