| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // Registers our Enable/Disable AutoFill pref. | 37 // Registers our Enable/Disable AutoFill pref. |
| 38 static void RegisterUserPrefs(PrefService* prefs); | 38 static void RegisterUserPrefs(PrefService* prefs); |
| 39 | 39 |
| 40 // RenderViewHostDelegate::AutoFill implementation: | 40 // RenderViewHostDelegate::AutoFill implementation: |
| 41 virtual void FormFieldValuesSubmitted( | 41 virtual void FormFieldValuesSubmitted( |
| 42 const webkit_glue::FormFieldValues& form); | 42 const webkit_glue::FormFieldValues& form); |
| 43 virtual void FormsSeen( | 43 virtual void FormsSeen( |
| 44 const std::vector<webkit_glue::FormFieldValues>& forms); | 44 const std::vector<webkit_glue::FormFieldValues>& forms); |
| 45 virtual bool GetAutoFillSuggestions(int query_id, | 45 virtual bool GetAutoFillSuggestions(int query_id, |
| 46 const webkit_glue::FormField& field); | 46 const webkit_glue::FormField& field); |
| 47 virtual bool FillAutoFillFormData(int query_id, |
| 48 const FormData& form, |
| 49 const string16& name, |
| 50 const string16& label); |
| 47 | 51 |
| 48 // AutoFillDialogObserver implementation: | 52 // AutoFillDialogObserver implementation: |
| 49 virtual void OnAutoFillDialogApply( | 53 virtual void OnAutoFillDialogApply( |
| 50 std::vector<AutoFillProfile>* profiles, | 54 std::vector<AutoFillProfile>* profiles, |
| 51 std::vector<CreditCard>* credit_cards); | 55 std::vector<CreditCard>* credit_cards); |
| 52 | 56 |
| 53 // PersonalDataManager::Observer implementation: | 57 // PersonalDataManager::Observer implementation: |
| 54 virtual void OnPersonalDataLoaded(); | 58 virtual void OnPersonalDataLoaded(); |
| 55 | 59 |
| 56 // Uses heuristics and existing personal data to determine the possible field | 60 // Uses heuristics and existing personal data to determine the possible field |
| (...skipping 27 matching lines...) Expand all Loading... |
| 84 ScopedVector<FormStructure> form_structures_; | 88 ScopedVector<FormStructure> form_structures_; |
| 85 scoped_ptr<FormStructure> upload_form_structure_; | 89 scoped_ptr<FormStructure> upload_form_structure_; |
| 86 | 90 |
| 87 // The infobar that asks for permission to store form information. | 91 // The infobar that asks for permission to store form information. |
| 88 scoped_ptr<AutoFillInfoBarDelegate> infobar_; | 92 scoped_ptr<AutoFillInfoBarDelegate> infobar_; |
| 89 | 93 |
| 90 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); | 94 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); |
| 91 }; | 95 }; |
| 92 | 96 |
| 93 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 97 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| OLD | NEW |