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 12 matching lines...) Expand all Loading... |
23 #include "base/time.h" | 23 #include "base/time.h" |
24 #include "components/autofill/browser/autocheckout_manager.h" | 24 #include "components/autofill/browser/autocheckout_manager.h" |
25 #include "components/autofill/browser/autocomplete_history_manager.h" | 25 #include "components/autofill/browser/autocomplete_history_manager.h" |
26 #include "components/autofill/browser/autofill_download.h" | 26 #include "components/autofill/browser/autofill_download.h" |
27 #include "components/autofill/browser/autofill_manager_delegate.h" | 27 #include "components/autofill/browser/autofill_manager_delegate.h" |
28 #include "components/autofill/browser/field_types.h" | 28 #include "components/autofill/browser/field_types.h" |
29 #include "components/autofill/browser/form_structure.h" | 29 #include "components/autofill/browser/form_structure.h" |
30 #include "components/autofill/browser/personal_data_manager.h" | 30 #include "components/autofill/browser/personal_data_manager.h" |
31 #include "components/autofill/common/autocheckout_status.h" | 31 #include "components/autofill/common/autocheckout_status.h" |
32 #include "components/autofill/common/form_data.h" | 32 #include "components/autofill/common/form_data.h" |
| 33 #include "components/autofill/common/forms_seen_param.h" |
33 #include "content/public/browser/web_contents_observer.h" | 34 #include "content/public/browser/web_contents_observer.h" |
34 #include "content/public/common/ssl_status.h" | 35 #include "content/public/common/ssl_status.h" |
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
36 | 37 |
37 class AutofillExternalDelegate; | 38 class AutofillExternalDelegate; |
38 class AutofillField; | 39 class AutofillField; |
39 class AutofillProfile; | 40 class AutofillProfile; |
40 class AutofillMetrics; | 41 class AutofillMetrics; |
41 class CreditCard; | 42 class CreditCard; |
42 class FormGroup; | 43 class FormGroup; |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 237 |
237 // Determines what the current state of password generation is, and if it has | 238 // Determines what the current state of password generation is, and if it has |
238 // changed from |password_generation_enabled_|. If it has changed or if | 239 // changed from |password_generation_enabled_|. If it has changed or if |
239 // |new_renderer| is true, it notifies the renderer of this change via | 240 // |new_renderer| is true, it notifies the renderer of this change via |
240 // SendPasswordGenerationStateToRenderer. | 241 // SendPasswordGenerationStateToRenderer. |
241 void UpdatePasswordGenerationState(content::RenderViewHost* host, | 242 void UpdatePasswordGenerationState(content::RenderViewHost* host, |
242 bool new_renderer); | 243 bool new_renderer); |
243 | 244 |
244 void OnFormsSeen(const std::vector<FormData>& forms, | 245 void OnFormsSeen(const std::vector<FormData>& forms, |
245 const base::TimeTicks& timestamp, | 246 const base::TimeTicks& timestamp, |
246 bool has_more_forms); | 247 autofill::FormsSeenParam param); |
247 void OnTextFieldDidChange(const FormData& form, | 248 void OnTextFieldDidChange(const FormData& form, |
248 const FormFieldData& field, | 249 const FormFieldData& field, |
249 const base::TimeTicks& timestamp); | 250 const base::TimeTicks& timestamp); |
250 | 251 |
251 // The |bounding_box| is a window relative value. | 252 // The |bounding_box| is a window relative value. |
252 void OnQueryFormFieldAutofill(int query_id, | 253 void OnQueryFormFieldAutofill(int query_id, |
253 const FormData& form, | 254 const FormData& form, |
254 const FormFieldData& field, | 255 const FormFieldData& field, |
255 const gfx::RectF& bounding_box, | 256 const gfx::RectF& bounding_box, |
256 bool display_warning); | 257 bool display_warning); |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 456 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
456 TestTabContentsWithExternalDelegate); | 457 TestTabContentsWithExternalDelegate); |
457 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 458 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
458 UserHappinessFormLoadAndSubmission); | 459 UserHappinessFormLoadAndSubmission); |
459 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 460 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
460 | 461 |
461 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 462 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
462 }; | 463 }; |
463 | 464 |
464 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 465 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |