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 |
11 #include "chrome/browser/webdata/web_data_service.h" | 11 #include "chrome/browser/webdata/web_data_service.h" |
12 #include "chrome/common/pref_member.h" | 12 #include "chrome/common/pref_member.h" |
13 #include "webkit/glue/autofill_form.h" | |
14 | 13 |
| 14 class AutofillForm; |
15 class Profile; | 15 class Profile; |
16 class WebContents; | 16 class WebContents; |
17 | 17 |
18 // Per-tab autofill manager. Handles receiving form data from the renderer and | 18 // Per-tab autofill manager. Handles receiving form data from the renderer and |
19 // the storing and retrieving of form data through WebDataService. | 19 // the storing and retrieving of form data through WebDataService. |
20 class AutofillManager : public WebDataServiceConsumer { | 20 class AutofillManager : public WebDataServiceConsumer { |
21 public: | 21 public: |
22 explicit AutofillManager(WebContents* web_contents); | 22 explicit AutofillManager(WebContents* web_contents); |
23 virtual ~AutofillManager(); | 23 virtual ~AutofillManager(); |
24 | 24 |
(...skipping 30 matching lines...) Expand all Loading... |
55 // 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 |
56 // get called back. | 56 // get called back. |
57 WebDataService::Handle pending_query_handle_; | 57 WebDataService::Handle pending_query_handle_; |
58 int64 node_id_; | 58 int64 node_id_; |
59 int request_id_; | 59 int request_id_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 61 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
62 }; | 62 }; |
63 | 63 |
64 #endif // CHROME_BROWSER_AUTOFILL_MANAGER_H_ | 64 #endif // CHROME_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |