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

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

Issue 42258: Add way to remove entries from autocomplete (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « no previous file | chrome/browser/autofill_manager.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 20 matching lines...) Expand all
31 void AutofillFormSubmitted(const AutofillForm& form); 31 void AutofillFormSubmitted(const AutofillForm& form);
32 32
33 // Starts a query into the database for the values corresponding to name. 33 // Starts a query into the database for the values corresponding to name.
34 // OnWebDataServiceRequestDone gets called when the query completes. 34 // OnWebDataServiceRequestDone gets called when the query completes.
35 void FetchValuesForName(const std::wstring& name, 35 void FetchValuesForName(const std::wstring& name,
36 const std::wstring& prefix, 36 const std::wstring& prefix,
37 int limit, 37 int limit,
38 int64 node_id, 38 int64 node_id,
39 int request_id); 39 int request_id);
40 40
41 // Removes the specified name/value pair from the database.
42 void RemoveValueForName(const std::wstring& name, const std::wstring& value);
43
41 // WebDataServiceConsumer implementation. 44 // WebDataServiceConsumer implementation.
42 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, 45 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
43 const WDTypedResult* result); 46 const WDTypedResult* result);
44 47
45 static void RegisterUserPrefs(PrefService* prefs); 48 static void RegisterUserPrefs(PrefService* prefs);
46 49
47 private: 50 private:
48 void StoreFormEntriesInWebDatabase(const AutofillForm& form); 51 void StoreFormEntriesInWebDatabase(const AutofillForm& form);
49 52
50 WebContents* web_contents_; 53 WebContents* web_contents_;
51 54
52 BooleanPrefMember form_autofill_enabled_; 55 BooleanPrefMember form_autofill_enabled_;
53 56
54 // When the manager makes a request from WebDataService, the database 57 // When the manager makes a request from WebDataService, the database
55 // is queried on another thread, we record the query handle until we 58 // is queried on another thread, we record the query handle until we
56 // get called back. 59 // get called back.
57 WebDataService::Handle pending_query_handle_; 60 WebDataService::Handle pending_query_handle_;
58 int64 node_id_; 61 int64 node_id_;
59 int request_id_; 62 int request_id_;
60 63
61 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 64 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
62 }; 65 };
63 66
64 #endif // CHROME_BROWSER_AUTOFILL_MANAGER_H_ 67 #endif // CHROME_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698