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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // Inform the client that the field has been filled. | 174 // Inform the client that the field has been filled. |
175 virtual void DidFillOrPreviewField( | 175 virtual void DidFillOrPreviewField( |
176 const base::string16& autofilled_value, | 176 const base::string16& autofilled_value, |
177 const base::string16& profile_full_name) = 0; | 177 const base::string16& profile_full_name) = 0; |
178 | 178 |
179 // Informs the client that a user gesture has been observed. | 179 // Informs the client that a user gesture has been observed. |
180 virtual void OnFirstUserGestureObserved() = 0; | 180 virtual void OnFirstUserGestureObserved() = 0; |
181 | 181 |
182 // If the context is secure. | 182 // If the context is secure. |
183 virtual bool IsContextSecure(const GURL& form_origin) = 0; | 183 virtual bool IsContextSecure(const GURL& form_origin) = 0; |
| 184 |
| 185 // Whether it is appropriate to show a signin promo for this user. |
| 186 virtual bool ShouldShowSigninPromo() = 0; |
| 187 |
| 188 // Starts the signin flow. Should not be called if ShouldShowSigninPromo() |
| 189 // returns false. |
| 190 virtual void StartSigninFlow() = 0; |
184 }; | 191 }; |
185 | 192 |
186 } // namespace autofill | 193 } // namespace autofill |
187 | 194 |
188 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 195 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
OLD | NEW |