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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(const webkit_glue::FormData& form, | 53 virtual bool GetAutoFillSuggestions(const webkit_glue::FormData& form, |
54 const webkit_glue::FormField& field); | 54 const webkit_glue::FormField& field); |
55 virtual bool FillAutoFillFormData(int query_id, | 55 virtual bool FillAutoFillFormData(int query_id, |
56 const webkit_glue::FormData& form, | 56 const webkit_glue::FormData& form, |
57 const webkit_glue::FormField& field, | 57 const webkit_glue::FormField& field, |
58 int unique_id); | 58 int unique_id); |
59 virtual void ShowAutoFillDialog(); | 59 virtual void ShowAutoFillDialog(); |
60 virtual void Reset(); | |
61 | 60 |
62 // Called by the AutoFillCCInfoBarDelegate when the user interacts with the | 61 // Called by the AutoFillCCInfoBarDelegate when the user interacts with the |
63 // infobar. | 62 // infobar. |
64 virtual void OnInfoBarClosed(bool should_save); | 63 virtual void OnInfoBarClosed(bool should_save); |
65 | 64 |
| 65 // Resets the stored form data. |
| 66 virtual void Reset(); |
| 67 |
66 // AutoFillDownloadManager::Observer implementation: | 68 // AutoFillDownloadManager::Observer implementation: |
67 virtual void OnLoadedAutoFillHeuristics(const std::string& heuristic_xml); | 69 virtual void OnLoadedAutoFillHeuristics(const std::string& heuristic_xml); |
68 virtual void OnUploadedAutoFillHeuristics(const std::string& form_signature); | 70 virtual void OnUploadedAutoFillHeuristics(const std::string& form_signature); |
69 virtual void OnHeuristicsRequestError( | 71 virtual void OnHeuristicsRequestError( |
70 const std::string& form_signature, | 72 const std::string& form_signature, |
71 AutoFillDownloadManager::AutoFillRequestType request_type, | 73 AutoFillDownloadManager::AutoFillRequestType request_type, |
72 int http_error); | 74 int http_error); |
73 | 75 |
74 // Returns the value of the AutoFillEnabled pref. | 76 // Returns the value of the AutoFillEnabled pref. |
75 virtual bool IsAutoFillEnabled() const; | 77 virtual bool IsAutoFillEnabled() const; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressAndCreditCardForm); | 208 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressAndCreditCardForm); |
207 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAutoFilledForm); | 209 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAutoFilledForm); |
208 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillPhoneNumber); | 210 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillPhoneNumber); |
209 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField); | 211 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField); |
210 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField); | 212 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField); |
211 | 213 |
212 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); | 214 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); |
213 }; | 215 }; |
214 | 216 |
215 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 217 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |