| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_AUTOFILL_MANAGER_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 void DidAcceptSuggestion(const base::string16& value, | 36 void DidAcceptSuggestion(const base::string16& value, |
| 37 int identifier, | 37 int identifier, |
| 38 int position) override; | 38 int position) override; |
| 39 bool GetDeletionConfirmationText(const base::string16& value, | 39 bool GetDeletionConfirmationText(const base::string16& value, |
| 40 int identifier, | 40 int identifier, |
| 41 base::string16* title, | 41 base::string16* title, |
| 42 base::string16* body) override; | 42 base::string16* body) override; |
| 43 bool RemoveSuggestion(const base::string16& value, int identifier) override; | 43 bool RemoveSuggestion(const base::string16& value, int identifier) override; |
| 44 void ClearPreviewedForm() override; | 44 void ClearPreviewedForm() override; |
| 45 bool IsCreditCardPopup() override; | 45 bool IsCreditCardPopup() override; |
| 46 autofill::AutofillDriver* GetAutofillDriver() override; |
| 46 | 47 |
| 47 // Invoked when a password mapping is added. | 48 // Invoked when a password mapping is added. |
| 48 void OnAddPasswordFormMapping( | 49 void OnAddPasswordFormMapping( |
| 49 int key, | 50 int key, |
| 50 const autofill::PasswordFormFillData& fill_data); | 51 const autofill::PasswordFormFillData& fill_data); |
| 51 | 52 |
| 52 // Handles a request from the renderer to show a popup with the given | 53 // Handles a request from the renderer to show a popup with the given |
| 53 // |suggestions| from the password manager. |options| should be a bitwise mask | 54 // |suggestions| from the password manager. |options| should be a bitwise mask |
| 54 // of autofill::ShowPasswordSuggestionsOptions values. | 55 // of autofill::ShowPasswordSuggestionsOptions values. |
| 55 void OnShowPasswordSuggestions(int key, | 56 void OnShowPasswordSuggestions(int key, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 autofill::AutofillClient* autofill_client_; // weak | 121 autofill::AutofillClient* autofill_client_; // weak |
| 121 | 122 |
| 122 base::WeakPtrFactory<PasswordAutofillManager> weak_ptr_factory_; | 123 base::WeakPtrFactory<PasswordAutofillManager> weak_ptr_factory_; |
| 123 | 124 |
| 124 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); | 125 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace password_manager | 128 } // namespace password_manager |
| 128 | 129 |
| 129 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ | 130 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ |
| OLD | NEW |