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 11 matching lines...) Expand all Loading... |
22 #include "base/time.h" | 22 #include "base/time.h" |
23 #include "components/autofill/browser/autocheckout_manager.h" | 23 #include "components/autofill/browser/autocheckout_manager.h" |
24 #include "components/autofill/browser/autocomplete_history_manager.h" | 24 #include "components/autofill/browser/autocomplete_history_manager.h" |
25 #include "components/autofill/browser/autofill_download.h" | 25 #include "components/autofill/browser/autofill_download.h" |
26 #include "components/autofill/browser/autofill_manager_delegate.h" | 26 #include "components/autofill/browser/autofill_manager_delegate.h" |
27 #include "components/autofill/browser/field_types.h" | 27 #include "components/autofill/browser/field_types.h" |
28 #include "components/autofill/browser/form_structure.h" | 28 #include "components/autofill/browser/form_structure.h" |
29 #include "components/autofill/browser/personal_data_manager.h" | 29 #include "components/autofill/browser/personal_data_manager.h" |
30 #include "components/autofill/common/autocheckout_status.h" | 30 #include "components/autofill/common/autocheckout_status.h" |
31 #include "components/autofill/common/form_data.h" | 31 #include "components/autofill/common/form_data.h" |
| 32 #include "components/autofill/common/forms_seen_state.h" |
32 #include "content/public/browser/web_contents_observer.h" | 33 #include "content/public/browser/web_contents_observer.h" |
33 #include "content/public/common/ssl_status.h" | 34 #include "content/public/common/ssl_status.h" |
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
35 | 36 |
36 class GURL; | 37 class GURL; |
37 class PrefRegistrySyncable; | 38 class PrefRegistrySyncable; |
38 | 39 |
39 struct ViewHostMsg_FrameNavigate_Params; | 40 struct ViewHostMsg_FrameNavigate_Params; |
40 | 41 |
41 namespace content { | 42 namespace content { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 const content::LoadCommittedDetails& details, | 208 const content::LoadCommittedDetails& details, |
208 const content::FrameNavigateParams& params) OVERRIDE; | 209 const content::FrameNavigateParams& params) OVERRIDE; |
209 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 210 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
210 | 211 |
211 // AutofillDownloadManager::Observer: | 212 // AutofillDownloadManager::Observer: |
212 virtual void OnLoadedServerPredictions( | 213 virtual void OnLoadedServerPredictions( |
213 const std::string& response_xml) OVERRIDE; | 214 const std::string& response_xml) OVERRIDE; |
214 | 215 |
215 void OnFormsSeen(const std::vector<FormData>& forms, | 216 void OnFormsSeen(const std::vector<FormData>& forms, |
216 const base::TimeTicks& timestamp, | 217 const base::TimeTicks& timestamp, |
217 bool has_more_forms); | 218 autofill::FormsSeenState state); |
218 void OnTextFieldDidChange(const FormData& form, | 219 void OnTextFieldDidChange(const FormData& form, |
219 const FormFieldData& field, | 220 const FormFieldData& field, |
220 const base::TimeTicks& timestamp); | 221 const base::TimeTicks& timestamp); |
221 | 222 |
222 // The |bounding_box| is a window relative value. | 223 // The |bounding_box| is a window relative value. |
223 void OnQueryFormFieldAutofill(int query_id, | 224 void OnQueryFormFieldAutofill(int query_id, |
224 const FormData& form, | 225 const FormData& form, |
225 const FormFieldData& field, | 226 const FormFieldData& field, |
226 const gfx::RectF& bounding_box, | 227 const gfx::RectF& bounding_box, |
227 bool display_warning); | 228 bool display_warning); |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 421 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
421 UserHappinessFormLoadAndSubmission); | 422 UserHappinessFormLoadAndSubmission); |
422 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 423 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
423 | 424 |
424 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 425 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
425 }; | 426 }; |
426 | 427 |
427 } // namespace autofill | 428 } // namespace autofill |
428 | 429 |
429 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 430 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |