OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 | 14 |
15 namespace content { | |
16 struct PasswordForm; | |
17 } | |
18 | |
19 namespace gfx { | 15 namespace gfx { |
20 class Rect; | 16 class Rect; |
21 class RectF; | 17 class RectF; |
22 } | 18 } |
23 | 19 |
24 class GURL; | 20 class GURL; |
25 class InfoBarService; | 21 class InfoBarService; |
26 class PrefService; | 22 class PrefService; |
27 | 23 |
28 namespace autofill { | 24 namespace autofill { |
29 | 25 |
30 class AutofillMetrics; | 26 class AutofillMetrics; |
31 class AutofillPopupDelegate; | 27 class AutofillPopupDelegate; |
32 class CreditCard; | 28 class CreditCard; |
33 class FormStructure; | 29 class FormStructure; |
34 class PasswordGenerator; | 30 class PasswordGenerator; |
35 class PersonalDataManager; | 31 class PersonalDataManager; |
36 struct FormData; | 32 struct FormData; |
| 33 struct PasswordForm; |
37 | 34 |
38 // A delegate interface that needs to be supplied to AutofillManager | 35 // A delegate interface that needs to be supplied to AutofillManager |
39 // by the embedder. | 36 // by the embedder. |
40 // | 37 // |
41 // Each delegate instance is associated with a given context within | 38 // Each delegate instance is associated with a given context within |
42 // which an AutofillManager is used (e.g. a single tab), so when we | 39 // which an AutofillManager is used (e.g. a single tab), so when we |
43 // say "for the delegate" below, we mean "in the execution context the | 40 // say "for the delegate" below, we mean "in the execution context the |
44 // delegate is associated with" (e.g. for the tab the AutofillManager is | 41 // delegate is associated with" (e.g. for the tab the AutofillManager is |
45 // attached to). | 42 // attached to). |
46 class AutofillManagerDelegate { | 43 class AutofillManagerDelegate { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 95 |
99 // Pass the form structures to the password generation manager to detect | 96 // Pass the form structures to the password generation manager to detect |
100 // account creation forms. | 97 // account creation forms. |
101 virtual void DetectAccountCreationForms( | 98 virtual void DetectAccountCreationForms( |
102 const std::vector<autofill::FormStructure*>& forms) = 0; | 99 const std::vector<autofill::FormStructure*>& forms) = 0; |
103 }; | 100 }; |
104 | 101 |
105 } // namespace autofill | 102 } // namespace autofill |
106 | 103 |
107 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ | 104 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ |
OLD | NEW |