| OLD | NEW |
| 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 24 matching lines...) Expand all Loading... |
| 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 // WebDataServiceConsumer implementation. | 41 // WebDataServiceConsumer implementation. |
| 42 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, | 42 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, |
| 43 const WDTypedResult* result); | 43 const WDTypedResult* result); |
| 44 | 44 |
| 45 static void RegisterUserPrefs(PrefService* prefs); |
| 46 |
| 45 private: | 47 private: |
| 46 void StoreFormEntriesInWebDatabase(const AutofillForm& form); | 48 void StoreFormEntriesInWebDatabase(const AutofillForm& form); |
| 47 | 49 |
| 48 WebContents* web_contents_; | 50 WebContents* web_contents_; |
| 49 | 51 |
| 50 BooleanPrefMember form_autofill_enabled_; | 52 BooleanPrefMember form_autofill_enabled_; |
| 51 | 53 |
| 52 // When the manager makes a request from WebDataService, the database | 54 // When the manager makes a request from WebDataService, the database |
| 53 // is queried on another thread, we record the query handle until we | 55 // is queried on another thread, we record the query handle until we |
| 54 // get called back. | 56 // get called back. |
| 55 WebDataService::Handle pending_query_handle_; | 57 WebDataService::Handle pending_query_handle_; |
| 56 int64 node_id_; | 58 int64 node_id_; |
| 57 int request_id_; | 59 int request_id_; |
| 58 | 60 |
| 59 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 61 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 #endif // CHROME_BROWSER_AUTOFILL_MANAGER_H_ | 64 #endif // CHROME_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |