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/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class PasswordManagerClient; | 21 class PasswordManagerClient; |
22 | 22 |
23 // This class is responsible for filling password forms. | 23 // This class is responsible for filling password forms. |
24 class PasswordAutofillManager : public autofill::AutofillPopupDelegate { | 24 class PasswordAutofillManager : public autofill::AutofillPopupDelegate { |
25 public: | 25 public: |
26 PasswordAutofillManager(PasswordManagerClient* password_manager_client, | 26 PasswordAutofillManager(PasswordManagerClient* password_manager_client, |
27 autofill::AutofillClient* autofill_client); | 27 autofill::AutofillClient* autofill_client); |
28 virtual ~PasswordAutofillManager(); | 28 virtual ~PasswordAutofillManager(); |
29 | 29 |
30 // AutofillPopupDelegate implementation. | 30 // AutofillPopupDelegate implementation. |
31 virtual void OnPopupShown() OVERRIDE; | 31 virtual void OnPopupShown() override; |
32 virtual void OnPopupHidden() OVERRIDE; | 32 virtual void OnPopupHidden() override; |
33 virtual void DidSelectSuggestion(const base::string16& value, | 33 virtual void DidSelectSuggestion(const base::string16& value, |
34 int identifier) OVERRIDE; | 34 int identifier) override; |
35 virtual void DidAcceptSuggestion(const base::string16& value, | 35 virtual void DidAcceptSuggestion(const base::string16& value, |
36 int identifier) OVERRIDE; | 36 int identifier) override; |
37 virtual void RemoveSuggestion(const base::string16& value, | 37 virtual void RemoveSuggestion(const base::string16& value, |
38 int identifier) OVERRIDE; | 38 int identifier) override; |
39 virtual void ClearPreviewedForm() OVERRIDE; | 39 virtual void ClearPreviewedForm() override; |
40 | 40 |
41 // Invoked when a password mapping is added. | 41 // Invoked when a password mapping is added. |
42 void OnAddPasswordFormMapping( | 42 void OnAddPasswordFormMapping( |
43 const autofill::FormFieldData& field, | 43 const autofill::FormFieldData& field, |
44 const autofill::PasswordFormFillData& fill_data); | 44 const autofill::PasswordFormFillData& fill_data); |
45 | 45 |
46 // Handles a request from the renderer to show a popup with the given | 46 // Handles a request from the renderer to show a popup with the given |
47 // |suggestions| from the password manager. | 47 // |suggestions| from the password manager. |
48 void OnShowPasswordSuggestions( | 48 void OnShowPasswordSuggestions( |
49 const autofill::FormFieldData& field, | 49 const autofill::FormFieldData& field, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 autofill::FormFieldData form_field_; | 100 autofill::FormFieldData form_field_; |
101 | 101 |
102 base::WeakPtrFactory<PasswordAutofillManager> weak_ptr_factory_; | 102 base::WeakPtrFactory<PasswordAutofillManager> weak_ptr_factory_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); | 104 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace password_manager | 107 } // namespace password_manager |
108 | 108 |
109 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ | 109 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ |
OLD | NEW |