| 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 #include "components/autofill/renderer/autofill_agent.h" | 5 #include "components/autofill/renderer/autofill_agent.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "components/autofill/common/autocheckout_status.h" | 14 #include "components/autofill/common/autocheckout_status.h" |
| 15 #include "components/autofill/common/autofill_constants.h" | 15 #include "components/autofill/common/autofill_constants.h" |
| 16 #include "components/autofill/common/autofill_messages.h" | 16 #include "components/autofill/common/autofill_messages.h" |
| 17 #include "components/autofill/common/autofill_switches.h" | 17 #include "components/autofill/common/autofill_switches.h" |
| 18 #include "components/autofill/common/form_data.h" | 18 #include "components/autofill/common/form_data.h" |
| 19 #include "components/autofill/common/form_data_predictions.h" | 19 #include "components/autofill/common/form_data_predictions.h" |
| 20 #include "components/autofill/common/form_field_data.h" | 20 #include "components/autofill/common/form_field_data.h" |
| 21 #include "components/autofill/common/web_element_descriptor.h" | 21 #include "components/autofill/common/web_element_descriptor.h" |
| 22 #include "components/autofill/renderer/form_autofill_util.h" | 22 #include "components/autofill/renderer/form_autofill_util.h" |
| 23 #include "components/autofill/renderer/page_click_tracker.h" | 23 #include "components/autofill/renderer/page_click_tracker.h" |
| 24 #include "components/autofill/renderer/password_autofill_agent.h" | 24 #include "components/autofill/renderer/password_autofill_agent.h" |
| 25 #include "content/public/common/password_form.h" | 25 #include "content/public/common/password_form.h" |
| 26 #include "content/public/common/ssl_status.h" | 26 #include "content/public/common/ssl_status.h" |
| 27 #include "content/public/renderer/render_view.h" | 27 #include "content/public/renderer/render_view.h" |
| 28 #include "grit/component_resources.h" | 28 #include "grit/component_resources.h" |
| 29 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 29 #include "third_party/WebKit/public/platform/WebRect.h" |
| 30 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" | 30 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
| 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" |
| 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
| 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeCollection.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeCollection.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebOptionElement.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebOptionElement.h" |
| 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 if (!forms.empty()) { | 983 if (!forms.empty()) { |
| 984 if (click_timer_.IsRunning()) | 984 if (click_timer_.IsRunning()) |
| 985 click_timer_.Stop(); | 985 click_timer_.Stop(); |
| 986 Send(new AutofillHostMsg_FormsSeen(routing_id(), forms, | 986 Send(new AutofillHostMsg_FormsSeen(routing_id(), forms, |
| 987 forms_seen_timestamp_, | 987 forms_seen_timestamp_, |
| 988 state)); | 988 state)); |
| 989 } | 989 } |
| 990 } | 990 } |
| 991 | 991 |
| 992 } // namespace autofill | 992 } // namespace autofill |
| OLD | NEW |