| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 // Registers our Enable/Disable AutoFill pref. | 44 // Registers our Enable/Disable AutoFill pref. |
| 45 static void RegisterUserPrefs(PrefService* prefs); | 45 static void RegisterUserPrefs(PrefService* prefs); |
| 46 | 46 |
| 47 // Returns the TabContents hosting this AutoFillManager. | 47 // Returns the TabContents hosting this AutoFillManager. |
| 48 TabContents* tab_contents() const { return tab_contents_; } | 48 TabContents* tab_contents() const { return tab_contents_; } |
| 49 | 49 |
| 50 // RenderViewHostDelegate::AutoFill implementation: | 50 // RenderViewHostDelegate::AutoFill implementation: |
| 51 virtual void FormSubmitted(const webkit_glue::FormData& form); | 51 virtual void FormSubmitted(const webkit_glue::FormData& form); |
| 52 virtual void FormsSeen(const std::vector<webkit_glue::FormData>& forms); | 52 virtual void FormsSeen(const std::vector<webkit_glue::FormData>& forms); |
| 53 virtual bool GetAutoFillSuggestions(bool field_autofilled, | 53 virtual bool GetAutoFillSuggestions(int query_id, |
| 54 bool field_autofilled, |
| 54 const webkit_glue::FormField& field); | 55 const webkit_glue::FormField& field); |
| 55 virtual bool FillAutoFillFormData(int query_id, | 56 virtual bool FillAutoFillFormData(int query_id, |
| 56 const webkit_glue::FormData& form, | 57 const webkit_glue::FormData& form, |
| 57 int unique_id); | 58 int unique_id); |
| 58 virtual void ShowAutoFillDialog(); | 59 virtual void ShowAutoFillDialog(); |
| 59 | 60 |
| 60 // Called by the AutoFillCCInfoBarDelegate when the user interacts with the | 61 // Called by the AutoFillCCInfoBarDelegate when the user interacts with the |
| 61 // infobar. | 62 // infobar. |
| 62 virtual void OnInfoBarClosed(bool should_save); | 63 virtual void OnInfoBarClosed(bool should_save); |
| 63 | 64 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressForm); | 191 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressForm); |
| 191 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressAndCreditCardForm); | 192 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressAndCreditCardForm); |
| 192 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillPhoneNumber); | 193 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillPhoneNumber); |
| 193 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField); | 194 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField); |
| 194 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField); | 195 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField); |
| 195 | 196 |
| 196 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); | 197 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); |
| 197 }; | 198 }; |
| 198 | 199 |
| 199 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 200 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| OLD | NEW |