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

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

Issue 3012042: Revert 54560 - ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 months 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
« no previous file with comments | « chrome/browser/autofill/autofill_cc_infobar_delegate.cc ('k') | chrome/browser/browser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27 matching lines...) Expand all
38 public: 38 public:
39 explicit AutoFillManager(TabContents* tab_contents); 39 explicit AutoFillManager(TabContents* tab_contents);
40 virtual ~AutoFillManager(); 40 virtual ~AutoFillManager();
41 41
42 // Registers our browser prefs. 42 // Registers our browser prefs.
43 static void RegisterBrowserPrefs(PrefService* prefs); 43 static void RegisterBrowserPrefs(PrefService* prefs);
44 44
45 // Registers our Enable/Disable AutoFill pref. 45 // Registers our Enable/Disable AutoFill pref.
46 static void RegisterUserPrefs(PrefService* prefs); 46 static void RegisterUserPrefs(PrefService* prefs);
47 47
48 // Returns the TabContents hosting this AutoFillManager.
49 TabContents* tab_contents() const { return tab_contents_; }
50
51 // RenderViewHostDelegate::AutoFill implementation: 48 // RenderViewHostDelegate::AutoFill implementation:
52 virtual void FormSubmitted(const webkit_glue::FormData& form); 49 virtual void FormSubmitted(const webkit_glue::FormData& form);
53 virtual void FormsSeen(const std::vector<webkit_glue::FormData>& forms); 50 virtual void FormsSeen(const std::vector<webkit_glue::FormData>& forms);
54 virtual bool GetAutoFillSuggestions(int query_id, 51 virtual bool GetAutoFillSuggestions(int query_id,
55 bool form_autofilled, 52 bool form_autofilled,
56 const webkit_glue::FormField& field); 53 const webkit_glue::FormField& field);
57 virtual bool FillAutoFillFormData(int query_id, 54 virtual bool FillAutoFillFormData(int query_id,
58 const webkit_glue::FormData& form, 55 const webkit_glue::FormData& form,
59 const string16& value, 56 const string16& value,
60 const string16& label, 57 const string16& label,
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 196
200 friend class AutoFillManagerTest; 197 friend class AutoFillManagerTest;
201 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillCreditCardForm); 198 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillCreditCardForm);
202 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillNonBillingFormSemicolon); 199 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillNonBillingFormSemicolon);
203 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillBillFormSemicolon); 200 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillBillFormSemicolon);
204 201
205 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); 202 DISALLOW_COPY_AND_ASSIGN(AutoFillManager);
206 }; 203 };
207 204
208 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 205 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_cc_infobar_delegate.cc ('k') | chrome/browser/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698