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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 class RenderFrameHost; | 25 class RenderFrameHost; |
26 } | 26 } |
27 | 27 |
28 namespace gfx { | 28 namespace gfx { |
29 class RectF; | 29 class RectF; |
30 } | 30 } |
31 | 31 |
32 namespace rappor { | 32 namespace rappor { |
33 class RapporService; | 33 class RapporServiceImpl; |
34 } | 34 } |
35 | 35 |
36 namespace syncer { | 36 namespace syncer { |
37 class SyncService; | 37 class SyncService; |
38 } | 38 } |
39 | 39 |
40 namespace autofill { | 40 namespace autofill { |
41 | 41 |
42 class AutofillPopupDelegate; | 42 class AutofillPopupDelegate; |
43 class AutofillWebDataService; | 43 class AutofillWebDataService; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 // Gets the preferences associated with the client. | 97 // Gets the preferences associated with the client. |
98 virtual PrefService* GetPrefs() = 0; | 98 virtual PrefService* GetPrefs() = 0; |
99 | 99 |
100 // Gets the sync service associated with the client. | 100 // Gets the sync service associated with the client. |
101 virtual syncer::SyncService* GetSyncService() = 0; | 101 virtual syncer::SyncService* GetSyncService() = 0; |
102 | 102 |
103 // Gets the IdentityProvider associated with the client (for OAuth2). | 103 // Gets the IdentityProvider associated with the client (for OAuth2). |
104 virtual IdentityProvider* GetIdentityProvider() = 0; | 104 virtual IdentityProvider* GetIdentityProvider() = 0; |
105 | 105 |
106 // Gets the RapporService associated with the client (for metrics). | 106 // Gets the RapporServiceImpl associated with the client (for metrics). |
107 virtual rappor::RapporService* GetRapporService() = 0; | 107 virtual rappor::RapporServiceImpl* GetRapporServiceImpl() = 0; |
108 | 108 |
109 // Causes the Autofill settings UI to be shown. | 109 // Causes the Autofill settings UI to be shown. |
110 virtual void ShowAutofillSettings() = 0; | 110 virtual void ShowAutofillSettings() = 0; |
111 | 111 |
112 // A user has attempted to use a masked card. Prompt them for further | 112 // A user has attempted to use a masked card. Prompt them for further |
113 // information to proceed. | 113 // information to proceed. |
114 virtual void ShowUnmaskPrompt(const CreditCard& card, | 114 virtual void ShowUnmaskPrompt(const CreditCard& card, |
115 UnmaskCardReason reason, | 115 UnmaskCardReason reason, |
116 base::WeakPtr<CardUnmaskDelegate> delegate) = 0; | 116 base::WeakPtr<CardUnmaskDelegate> delegate) = 0; |
117 virtual void OnUnmaskVerificationResult(PaymentsRpcResult result) = 0; | 117 virtual void OnUnmaskVerificationResult(PaymentsRpcResult result) = 0; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // returns false. | 190 // returns false. |
191 virtual void StartSigninFlow() = 0; | 191 virtual void StartSigninFlow() = 0; |
192 | 192 |
193 // Shows the explanation of http not secure warning message. | 193 // Shows the explanation of http not secure warning message. |
194 virtual void ShowHttpNotSecureExplanation() = 0; | 194 virtual void ShowHttpNotSecureExplanation() = 0; |
195 }; | 195 }; |
196 | 196 |
197 } // namespace autofill | 197 } // namespace autofill |
198 | 198 |
199 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 199 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
OLD | NEW |