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