| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "components/autofill/core/common/password_form_field_prediction_map.h" | 14 #include "components/autofill/core/common/password_form_field_prediction_map.h" |
| 15 | 15 |
| 16 namespace autofill { | 16 namespace autofill { |
| 17 class AutofillDriver; |
| 17 struct FormData; | 18 struct FormData; |
| 18 struct PasswordForm; | 19 struct PasswordForm; |
| 19 struct PasswordFormGenerationData; | 20 struct PasswordFormGenerationData; |
| 20 struct PasswordFormFillData; | 21 struct PasswordFormFillData; |
| 21 } // namespace autofill | 22 } // namespace autofill |
| 22 | 23 |
| 23 namespace password_manager { | 24 namespace password_manager { |
| 24 | 25 |
| 25 class PasswordAutofillManager; | 26 class PasswordAutofillManager; |
| 26 class PasswordGenerationManager; | 27 class PasswordGenerationManager; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Returns the PasswordAutofillManager associated with this instance. | 91 // Returns the PasswordAutofillManager associated with this instance. |
| 91 virtual PasswordAutofillManager* GetPasswordAutofillManager() = 0; | 92 virtual PasswordAutofillManager* GetPasswordAutofillManager() = 0; |
| 92 | 93 |
| 93 // Sends a message to the renderer whether logging to | 94 // Sends a message to the renderer whether logging to |
| 94 // chrome://password-manager-internals is available. | 95 // chrome://password-manager-internals is available. |
| 95 virtual void SendLoggingAvailability() {} | 96 virtual void SendLoggingAvailability() {} |
| 96 | 97 |
| 97 // Allows the form classifier to find generation fields. | 98 // Allows the form classifier to find generation fields. |
| 98 virtual void AllowToRunFormClassifier() {} | 99 virtual void AllowToRunFormClassifier() {} |
| 99 | 100 |
| 101 // Return the associated AutofillDriver. |
| 102 virtual autofill::AutofillDriver* GetAutofillDriver() = 0; |
| 103 |
| 100 private: | 104 private: |
| 101 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); | 105 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); |
| 102 }; | 106 }; |
| 103 | 107 |
| 104 } // namespace password_manager | 108 } // namespace password_manager |
| 105 | 109 |
| 106 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ | 110 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_DRIVER_H_ |
| OLD | NEW |