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_state.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 GURL; | 38 class GURL; |
38 class PrefRegistrySyncable; | 39 class PrefRegistrySyncable; |
39 class ProfileSyncService; | 40 class ProfileSyncService; |
40 | 41 |
41 struct ViewHostMsg_FrameNavigate_Params; | 42 struct ViewHostMsg_FrameNavigate_Params; |
42 | 43 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 240 |
240 // Determines what the current state of password generation is, and if it has | 241 // Determines what the current state of password generation is, and if it has |
241 // changed from |password_generation_enabled_|. If it has changed or if | 242 // changed from |password_generation_enabled_|. If it has changed or if |
242 // |new_renderer| is true, it notifies the renderer of this change via | 243 // |new_renderer| is true, it notifies the renderer of this change via |
243 // SendPasswordGenerationStateToRenderer. | 244 // SendPasswordGenerationStateToRenderer. |
244 void UpdatePasswordGenerationState(content::RenderViewHost* host, | 245 void UpdatePasswordGenerationState(content::RenderViewHost* host, |
245 bool new_renderer); | 246 bool new_renderer); |
246 | 247 |
247 void OnFormsSeen(const std::vector<FormData>& forms, | 248 void OnFormsSeen(const std::vector<FormData>& forms, |
248 const base::TimeTicks& timestamp, | 249 const base::TimeTicks& timestamp, |
249 bool has_more_forms); | 250 autofill::FormsSeenState state); |
250 void OnTextFieldDidChange(const FormData& form, | 251 void OnTextFieldDidChange(const FormData& form, |
251 const FormFieldData& field, | 252 const FormFieldData& field, |
252 const base::TimeTicks& timestamp); | 253 const base::TimeTicks& timestamp); |
253 | 254 |
254 // The |bounding_box| is a window relative value. | 255 // The |bounding_box| is a window relative value. |
255 void OnQueryFormFieldAutofill(int query_id, | 256 void OnQueryFormFieldAutofill(int query_id, |
256 const FormData& form, | 257 const FormData& form, |
257 const FormFieldData& field, | 258 const FormFieldData& field, |
258 const gfx::RectF& bounding_box, | 259 const gfx::RectF& bounding_box, |
259 bool display_warning); | 260 bool display_warning); |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 462 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
462 UserHappinessFormLoadAndSubmission); | 463 UserHappinessFormLoadAndSubmission); |
463 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 464 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
464 | 465 |
465 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 466 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
466 }; | 467 }; |
467 | 468 |
468 } // namespace autofill | 469 } // namespace autofill |
469 | 470 |
470 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 471 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |