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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 18 matching lines...) Expand all Loading... |
29 } | 29 } |
30 | 30 |
31 namespace rappor { | 31 namespace rappor { |
32 class RapporServiceImpl; | 32 class RapporServiceImpl; |
33 } | 33 } |
34 | 34 |
35 namespace syncer { | 35 namespace syncer { |
36 class SyncService; | 36 class SyncService; |
37 } | 37 } |
38 | 38 |
| 39 namespace ukm { |
| 40 class UkmService; |
| 41 } |
| 42 |
39 namespace autofill { | 43 namespace autofill { |
40 | 44 |
41 class AutofillPopupDelegate; | 45 class AutofillPopupDelegate; |
42 class AutofillWebDataService; | 46 class AutofillWebDataService; |
43 class CardUnmaskDelegate; | 47 class CardUnmaskDelegate; |
44 class CreditCard; | 48 class CreditCard; |
45 class FormStructure; | 49 class FormStructure; |
46 class PersonalDataManager; | 50 class PersonalDataManager; |
47 struct Suggestion; | 51 struct Suggestion; |
48 | 52 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 102 |
99 // Gets the sync service associated with the client. | 103 // Gets the sync service associated with the client. |
100 virtual syncer::SyncService* GetSyncService() = 0; | 104 virtual syncer::SyncService* GetSyncService() = 0; |
101 | 105 |
102 // Gets the IdentityProvider associated with the client (for OAuth2). | 106 // Gets the IdentityProvider associated with the client (for OAuth2). |
103 virtual IdentityProvider* GetIdentityProvider() = 0; | 107 virtual IdentityProvider* GetIdentityProvider() = 0; |
104 | 108 |
105 // Gets the RapporServiceImpl associated with the client (for metrics). | 109 // Gets the RapporServiceImpl associated with the client (for metrics). |
106 virtual rappor::RapporServiceImpl* GetRapporServiceImpl() = 0; | 110 virtual rappor::RapporServiceImpl* GetRapporServiceImpl() = 0; |
107 | 111 |
| 112 // Gets the UKM service assiciated with this client (for metrics). |
| 113 virtual ukm::UkmService* GetUkmService() = 0; |
| 114 |
108 // Causes the Autofill settings UI to be shown. | 115 // Causes the Autofill settings UI to be shown. |
109 virtual void ShowAutofillSettings() = 0; | 116 virtual void ShowAutofillSettings() = 0; |
110 | 117 |
111 // A user has attempted to use a masked card. Prompt them for further | 118 // A user has attempted to use a masked card. Prompt them for further |
112 // information to proceed. | 119 // information to proceed. |
113 virtual void ShowUnmaskPrompt(const CreditCard& card, | 120 virtual void ShowUnmaskPrompt(const CreditCard& card, |
114 UnmaskCardReason reason, | 121 UnmaskCardReason reason, |
115 base::WeakPtr<CardUnmaskDelegate> delegate) = 0; | 122 base::WeakPtr<CardUnmaskDelegate> delegate) = 0; |
116 virtual void OnUnmaskVerificationResult(PaymentsRpcResult result) = 0; | 123 virtual void OnUnmaskVerificationResult(PaymentsRpcResult result) = 0; |
117 | 124 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // returns false. | 196 // returns false. |
190 virtual void StartSigninFlow() = 0; | 197 virtual void StartSigninFlow() = 0; |
191 | 198 |
192 // Shows the explanation of http not secure warning message. | 199 // Shows the explanation of http not secure warning message. |
193 virtual void ShowHttpNotSecureExplanation() = 0; | 200 virtual void ShowHttpNotSecureExplanation() = 0; |
194 }; | 201 }; |
195 | 202 |
196 } // namespace autofill | 203 } // namespace autofill |
197 | 204 |
198 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 205 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
OLD | NEW |