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 CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ |
7 | 7 |
| 8 #include <vector> |
| 9 |
8 class PasswordGenerationManager; | 10 class PasswordGenerationManager; |
9 class PasswordManager; | 11 class PasswordManager; |
10 | 12 |
11 namespace autofill { | 13 namespace autofill { |
12 class AutofillManager; | 14 class AutofillManager; |
| 15 struct FormData; |
13 struct PasswordForm; | 16 struct PasswordForm; |
14 struct PasswordFormFillData; | 17 struct PasswordFormFillData; |
15 } // namespace autofill | 18 } // namespace autofill |
16 | 19 |
17 // Interface that allows PasswordManager core code to interact with its driver | 20 // Interface that allows PasswordManager core code to interact with its driver |
18 // (i.e., obtain information from it and give information to it). | 21 // (i.e., obtain information from it and give information to it). |
19 class PasswordManagerDriver { | 22 class PasswordManagerDriver { |
20 public: | 23 public: |
21 PasswordManagerDriver() {} | 24 PasswordManagerDriver() {} |
22 virtual ~PasswordManagerDriver() {} | 25 virtual ~PasswordManagerDriver() {} |
(...skipping 14 matching lines...) Expand all Loading... |
37 | 40 |
38 // Returns the PasswordManager associated with this instance. | 41 // Returns the PasswordManager associated with this instance. |
39 virtual PasswordManager* GetPasswordManager() = 0; | 42 virtual PasswordManager* GetPasswordManager() = 0; |
40 | 43 |
41 // Returns the AutofillManager associated with this instance. | 44 // Returns the AutofillManager associated with this instance. |
42 virtual autofill::AutofillManager* GetAutofillManager() = 0; | 45 virtual autofill::AutofillManager* GetAutofillManager() = 0; |
43 | 46 |
44 // Informs the driver that |form| can be used for password generation. | 47 // Informs the driver that |form| can be used for password generation. |
45 virtual void AllowPasswordGenerationForForm(autofill::PasswordForm* form) = 0; | 48 virtual void AllowPasswordGenerationForForm(autofill::PasswordForm* form) = 0; |
46 | 49 |
| 50 // Notifies the driver that account creation |forms| were found. |
| 51 virtual void AccountCreationFormsFound( |
| 52 const std::vector<autofill::FormData>& forms) = 0; |
| 53 |
47 private: | 54 private: |
48 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); | 55 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); |
49 }; | 56 }; |
50 | 57 |
51 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ | 58 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ |
OLD | NEW |