| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 virtual void DidFillOrPreviewField( | 179 virtual void DidFillOrPreviewField( |
| 180 const base::string16& autofilled_value, | 180 const base::string16& autofilled_value, |
| 181 const base::string16& profile_full_name) = 0; | 181 const base::string16& profile_full_name) = 0; |
| 182 | 182 |
| 183 // If the context is secure. | 183 // If the context is secure. |
| 184 virtual bool IsContextSecure() = 0; | 184 virtual bool IsContextSecure() = 0; |
| 185 | 185 |
| 186 // Whether it is appropriate to show a signin promo for this user. | 186 // Whether it is appropriate to show a signin promo for this user. |
| 187 virtual bool ShouldShowSigninPromo() = 0; | 187 virtual bool ShouldShowSigninPromo() = 0; |
| 188 | 188 |
| 189 // Starts the signin flow. Should not be called if ShouldShowSigninPromo() | |
| 190 // returns false. | |
| 191 virtual void StartSigninFlow() = 0; | |
| 192 | |
| 193 // Shows the explanation of http not secure warning message. | |
| 194 virtual void ShowHttpNotSecureExplanation() = 0; | |
| 195 | |
| 196 // Whether Autofill is currently supported by the client. If false, all | 189 // Whether Autofill is currently supported by the client. If false, all |
| 197 // features of Autofill are disabled, including Autocomplete. | 190 // features of Autofill are disabled, including Autocomplete. |
| 198 virtual bool IsAutofillSupported() = 0; | 191 virtual bool IsAutofillSupported() = 0; |
| 192 |
| 193 // Handles simple actions for the autofill popups. |
| 194 virtual void ExecuteCommand(int id) = 0; |
| 199 }; | 195 }; |
| 200 | 196 |
| 201 } // namespace autofill | 197 } // namespace autofill |
| 202 | 198 |
| 203 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 199 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| OLD | NEW |