OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_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 gfx { | 15 namespace gfx { |
16 class Rect; | 16 class Rect; |
17 class RectF; | 17 class RectF; |
18 } | 18 } |
19 | 19 |
20 class GURL; | 20 class GURL; |
21 class InfoBarService; | |
22 class PrefService; | 21 class PrefService; |
23 | 22 |
24 namespace autofill { | 23 namespace autofill { |
25 | 24 |
26 class AutofillMetrics; | 25 class AutofillMetrics; |
27 class AutofillPopupDelegate; | 26 class AutofillPopupDelegate; |
28 class AutofillWebDataService; | 27 class AutofillWebDataService; |
29 class CreditCard; | 28 class CreditCard; |
30 class FormStructure; | 29 class FormStructure; |
31 class PasswordGenerator; | |
32 class PersonalDataManager; | 30 class PersonalDataManager; |
33 struct FormData; | 31 struct FormData; |
34 struct PasswordForm; | |
35 | 32 |
36 // A client interface that needs to be supplied to the Autofill component by the | 33 // A client interface that needs to be supplied to the Autofill component by the |
37 // embedder. | 34 // embedder. |
38 // | 35 // |
39 // Each client instance is associated with a given context within which an | 36 // Each client instance is associated with a given context within which an |
40 // AutofillManager is used (e.g. a single tab), so when we say "for the client" | 37 // AutofillManager is used (e.g. a single tab), so when we say "for the client" |
41 // below, we mean "in the execution context the client is associated with" (e.g. | 38 // below, we mean "in the execution context the client is associated with" (e.g. |
42 // for the tab the AutofillManager is attached to). | 39 // for the tab the AutofillManager is attached to). |
43 class AutofillClient { | 40 class AutofillClient { |
44 public: | 41 public: |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 110 |
114 // Inform the client that the field has been filled. | 111 // Inform the client that the field has been filled. |
115 virtual void DidFillOrPreviewField( | 112 virtual void DidFillOrPreviewField( |
116 const base::string16& autofilled_value, | 113 const base::string16& autofilled_value, |
117 const base::string16& profile_full_name) = 0; | 114 const base::string16& profile_full_name) = 0; |
118 }; | 115 }; |
119 | 116 |
120 } // namespace autofill | 117 } // namespace autofill |
121 | 118 |
122 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 119 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
OLD | NEW |