| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 virtual void DidFillOrPreviewField( | 178 virtual void DidFillOrPreviewField( |
| 179 const base::string16& autofilled_value, | 179 const base::string16& autofilled_value, |
| 180 const base::string16& profile_full_name) = 0; | 180 const base::string16& profile_full_name) = 0; |
| 181 | 181 |
| 182 // Informs the client that a user gesture has been observed. | 182 // Informs the client that a user gesture has been observed. |
| 183 virtual void OnFirstUserGestureObserved() = 0; | 183 virtual void OnFirstUserGestureObserved() = 0; |
| 184 | 184 |
| 185 // If the context is secure. | 185 // If the context is secure. |
| 186 virtual bool IsContextSecure(const GURL& form_origin) = 0; | 186 virtual bool IsContextSecure(const GURL& form_origin) = 0; |
| 187 | 187 |
| 188 // Returns false for http sites in which case autofill popup will show "not |
| 189 // secure" warning message. |
| 190 virtual bool IsTopLevelURLSecure() = 0; |
| 191 |
| 188 // Whether it is appropriate to show a signin promo for this user. | 192 // Whether it is appropriate to show a signin promo for this user. |
| 189 virtual bool ShouldShowSigninPromo() = 0; | 193 virtual bool ShouldShowSigninPromo() = 0; |
| 190 | 194 |
| 191 // Starts the signin flow. Should not be called if ShouldShowSigninPromo() | 195 // Starts the signin flow. Should not be called if ShouldShowSigninPromo() |
| 192 // returns false. | 196 // returns false. |
| 193 virtual void StartSigninFlow() = 0; | 197 virtual void StartSigninFlow() = 0; |
| 194 }; | 198 }; |
| 195 | 199 |
| 196 } // namespace autofill | 200 } // namespace autofill |
| 197 | 201 |
| 198 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 202 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| OLD | NEW |