| 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 class PasswordGenerationManager; |
| 9 class PasswordManager; |
| 10 |
| 8 namespace autofill { | 11 namespace autofill { |
| 9 struct PasswordFormFillData; | 12 struct PasswordFormFillData; |
| 10 } // namespace autofill | 13 } // namespace autofill |
| 11 | 14 |
| 12 // Interface that allows PasswordManager core code to interact with its driver | 15 // Interface that allows PasswordManager core code to interact with its driver |
| 13 // (i.e., obtain information from it and give information to it). | 16 // (i.e., obtain information from it and give information to it). |
| 14 class PasswordManagerDriver { | 17 class PasswordManagerDriver { |
| 15 public: | 18 public: |
| 16 PasswordManagerDriver() {} | 19 PasswordManagerDriver() {} |
| 17 virtual ~PasswordManagerDriver() {} | 20 virtual ~PasswordManagerDriver() {} |
| 18 | 21 |
| 19 // Fills forms matching |form_data|. | 22 // Fills forms matching |form_data|. |
| 20 virtual void FillPasswordForm( | 23 virtual void FillPasswordForm( |
| 21 const autofill::PasswordFormFillData& form_data) = 0; | 24 const autofill::PasswordFormFillData& form_data) = 0; |
| 22 | 25 |
| 23 // Returns whether any SSL certificate errors were encountered as a result of | 26 // Returns whether any SSL certificate errors were encountered as a result of |
| 24 // the last page load. | 27 // the last page load. |
| 25 virtual bool DidLastPageLoadEncounterSSLErrors() = 0; | 28 virtual bool DidLastPageLoadEncounterSSLErrors() = 0; |
| 26 | 29 |
| 30 // Returns the PasswordGenerationManager associated with this instance. |
| 31 virtual PasswordGenerationManager* GetPasswordGenerationManager() = 0; |
| 32 |
| 33 // Returns the PasswordManager associated with this instance. |
| 34 virtual PasswordManager* GetPasswordManager() = 0; |
| 35 |
| 27 private: | 36 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); | 37 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); |
| 29 }; | 38 }; |
| 30 | 39 |
| 31 | |
| 32 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ | 40 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ |
| OLD | NEW |