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