Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: chrome/browser/autofill/autofill_manager.h

Issue 5322001: Before starting translation reset cache in AutoFillManager. To call Reset() f... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(bool field_autofilled,
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 int unique_id); 57 int unique_id);
58 virtual void ShowAutoFillDialog(); 58 virtual void ShowAutoFillDialog();
59 virtual void Reset();
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
64 // Resets the stored form data.
65 virtual void Reset();
66
67 // AutoFillDownloadManager::Observer implementation: 65 // AutoFillDownloadManager::Observer implementation:
68 virtual void OnLoadedAutoFillHeuristics(const std::string& heuristic_xml); 66 virtual void OnLoadedAutoFillHeuristics(const std::string& heuristic_xml);
69 virtual void OnUploadedAutoFillHeuristics(const std::string& form_signature); 67 virtual void OnUploadedAutoFillHeuristics(const std::string& form_signature);
70 virtual void OnHeuristicsRequestError( 68 virtual void OnHeuristicsRequestError(
71 const std::string& form_signature, 69 const std::string& form_signature,
72 AutoFillDownloadManager::AutoFillRequestType request_type, 70 AutoFillDownloadManager::AutoFillRequestType request_type,
73 int http_error); 71 int http_error);
74 72
75 // Returns the value of the AutoFillEnabled pref. 73 // Returns the value of the AutoFillEnabled pref.
76 virtual bool IsAutoFillEnabled() const; 74 virtual bool IsAutoFillEnabled() const;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressForm); 189 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressForm);
192 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressAndCreditCardForm); 190 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillAddressAndCreditCardForm);
193 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillPhoneNumber); 191 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillPhoneNumber);
194 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField); 192 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesRemoveField);
195 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField); 193 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FormChangesAddField);
196 194
197 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); 195 DISALLOW_COPY_AND_ASSIGN(AutoFillManager);
198 }; 196 };
199 197
200 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 198 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698