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