| 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 <string> |
| 8 #include <vector> | 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 11 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 13 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 14 #include "base/values.h" | 15 #include "base/values.h" |
| 15 #include "ui/base/window_open_disposition.h" | 16 #include "ui/base/window_open_disposition.h" |
| 16 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 17 | 18 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // Inform the client that the field has been filled. | 186 // Inform the client that the field has been filled. |
| 186 virtual void DidFillOrPreviewField( | 187 virtual void DidFillOrPreviewField( |
| 187 const base::string16& autofilled_value, | 188 const base::string16& autofilled_value, |
| 188 const base::string16& profile_full_name) = 0; | 189 const base::string16& profile_full_name) = 0; |
| 189 | 190 |
| 190 // Informs the client that a user gesture has been observed. | 191 // Informs the client that a user gesture has been observed. |
| 191 virtual void OnFirstUserGestureObserved() = 0; | 192 virtual void OnFirstUserGestureObserved() = 0; |
| 192 | 193 |
| 193 // If the context is secure. | 194 // If the context is secure. |
| 194 virtual bool IsContextSecure(const GURL& form_origin) = 0; | 195 virtual bool IsContextSecure(const GURL& form_origin) = 0; |
| 196 |
| 197 // Returns the application locale. |
| 198 virtual const std::string& GetApplicationLocale() = 0; |
| 195 }; | 199 }; |
| 196 | 200 |
| 197 } // namespace autofill | 201 } // namespace autofill |
| 198 | 202 |
| 199 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 203 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| OLD | NEW |