| 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 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // (i.e., obtain information from it and give information to it). | 27 // (i.e., obtain information from it and give information to it). |
| 28 class PasswordManagerDriver { | 28 class PasswordManagerDriver { |
| 29 public: | 29 public: |
| 30 PasswordManagerDriver() {} | 30 PasswordManagerDriver() {} |
| 31 virtual ~PasswordManagerDriver() {} | 31 virtual ~PasswordManagerDriver() {} |
| 32 | 32 |
| 33 // Fills forms matching |form_data|. | 33 // Fills forms matching |form_data|. |
| 34 virtual void FillPasswordForm( | 34 virtual void FillPasswordForm( |
| 35 const autofill::PasswordFormFillData& form_data) = 0; | 35 const autofill::PasswordFormFillData& form_data) = 0; |
| 36 | 36 |
| 37 // Returns whether any SSL certificate errors were encountered as a result of | |
| 38 // the last page load. | |
| 39 virtual bool DidLastPageLoadEncounterSSLErrors() = 0; | |
| 40 | |
| 41 // If this browsing session should not be persisted. | |
| 42 virtual bool IsOffTheRecord() = 0; | |
| 43 | |
| 44 // Informs the driver that |form| can be used for password generation. | 37 // Informs the driver that |form| can be used for password generation. |
| 45 virtual void AllowPasswordGenerationForForm( | 38 virtual void AllowPasswordGenerationForForm( |
| 46 const autofill::PasswordForm& form) = 0; | 39 const autofill::PasswordForm& form) = 0; |
| 47 | 40 |
| 48 // Notifies the driver that account creation |forms| were found. | 41 // Notifies the driver that account creation |forms| were found. |
| 49 virtual void AccountCreationFormsFound( | 42 virtual void AccountCreationFormsFound( |
| 50 const std::vector<autofill::FormData>& forms) = 0; | 43 const std::vector<autofill::FormData>& forms) = 0; |
| 51 | 44 |
| 52 // Tells the driver to fill the form with the |username| and |password|. | 45 // Tells the driver to fill the form with the |username| and |password|. |
| 53 virtual void FillSuggestion(const base::string16& username, | 46 virtual void FillSuggestion(const base::string16& username, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 73 // Returns the AutofillManager associated with this instance. | 66 // Returns the AutofillManager associated with this instance. |
| 74 virtual autofill::AutofillManager* GetAutofillManager() = 0; | 67 virtual autofill::AutofillManager* GetAutofillManager() = 0; |
| 75 | 68 |
| 76 private: | 69 private: |
| 77 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); | 70 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); |
| 78 }; | 71 }; |
| 79 | 72 |
| 80 } // namespace password_manager | 73 } // namespace password_manager |
| 81 | 74 |
| 82 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ | 75 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ |
| OLD | NEW |