OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_AUTOFILL_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 // Determines what the current state of password generation is, and if it has | 232 // Determines what the current state of password generation is, and if it has |
233 // changed from |password_generation_enabled_|. If it has changed or if | 233 // changed from |password_generation_enabled_|. If it has changed or if |
234 // |new_renderer| is true, it notifies the renderer of this change via | 234 // |new_renderer| is true, it notifies the renderer of this change via |
235 // SendPasswordGenerationStateToRenderer. | 235 // SendPasswordGenerationStateToRenderer. |
236 void UpdatePasswordGenerationState(content::RenderViewHost* host, | 236 void UpdatePasswordGenerationState(content::RenderViewHost* host, |
237 bool new_renderer); | 237 bool new_renderer); |
238 | 238 |
239 void OnFormsSeen(const std::vector<FormData>& forms, | 239 void OnFormsSeen(const std::vector<FormData>& forms, |
240 const base::TimeTicks& timestamp, | 240 const base::TimeTicks& timestamp, |
241 bool has_more_forms); | 241 bool has_more_forms, |
| 242 bool is_post_document_load); |
242 void OnTextFieldDidChange(const FormData& form, | 243 void OnTextFieldDidChange(const FormData& form, |
243 const FormFieldData& field, | 244 const FormFieldData& field, |
244 const base::TimeTicks& timestamp); | 245 const base::TimeTicks& timestamp); |
245 | 246 |
246 // The |bounding_box| is a window relative value. | 247 // The |bounding_box| is a window relative value. |
247 void OnQueryFormFieldAutofill(int query_id, | 248 void OnQueryFormFieldAutofill(int query_id, |
248 const FormData& form, | 249 const FormData& form, |
249 const FormFieldData& field, | 250 const FormFieldData& field, |
250 const gfx::RectF& bounding_box, | 251 const gfx::RectF& bounding_box, |
251 bool display_warning); | 252 bool display_warning); |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 448 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
448 TestTabContentsWithExternalDelegate); | 449 TestTabContentsWithExternalDelegate); |
449 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 450 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
450 UserHappinessFormLoadAndSubmission); | 451 UserHappinessFormLoadAndSubmission); |
451 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 452 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
452 | 453 |
453 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 454 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
454 }; | 455 }; |
455 | 456 |
456 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 457 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |