OLD | NEW |
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 12 matching lines...) Expand all Loading... |
23 class CreditCard; | 23 class CreditCard; |
24 class FormStructure; | 24 class FormStructure; |
25 class PrefService; | 25 class PrefService; |
26 class TabContents; | 26 class TabContents; |
27 | 27 |
28 namespace webkit_glue { | 28 namespace webkit_glue { |
29 struct FormData; | 29 struct FormData; |
30 class FormField; | 30 class FormField; |
31 } // namespace webkit_glue | 31 } // namespace webkit_glue |
32 | 32 |
33 // TODO(jhawkins): Maybe this should be in a grd file? | |
34 extern const char* kAutoFillLearnMoreUrl; | |
35 | |
36 // Manages saving and restoring the user's personal information entered into web | 33 // Manages saving and restoring the user's personal information entered into web |
37 // forms. | 34 // forms. |
38 class AutoFillManager : public RenderViewHostDelegate::AutoFill, | 35 class AutoFillManager : public RenderViewHostDelegate::AutoFill, |
39 public AutoFillDownloadManager::Observer { | 36 public AutoFillDownloadManager::Observer { |
40 public: | 37 public: |
41 explicit AutoFillManager(TabContents* tab_contents); | 38 explicit AutoFillManager(TabContents* tab_contents); |
42 virtual ~AutoFillManager(); | 39 virtual ~AutoFillManager(); |
43 | 40 |
44 // Registers our browser prefs. | 41 // Registers our browser prefs. |
45 static void RegisterBrowserPrefs(PrefService* prefs); | 42 static void RegisterBrowserPrefs(PrefService* prefs); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 202 |
206 friend class TestAutoFillManager; | 203 friend class TestAutoFillManager; |
207 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillCreditCardForm); | 204 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillCreditCardForm); |
208 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillNonBillingFormSemicolon); | 205 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillNonBillingFormSemicolon); |
209 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillBillFormSemicolon); | 206 FRIEND_TEST_ALL_PREFIXES(AutoFillManagerTest, FillBillFormSemicolon); |
210 | 207 |
211 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); | 208 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); |
212 }; | 209 }; |
213 | 210 |
214 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 211 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |