OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/content/renderer/autofill_agent.h" | 5 #include "components/autofill/content/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/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/time.h" | 13 #include "base/time.h" |
14 #include "components/autofill/content/renderer/form_autofill_util.h" | 14 #include "components/autofill/content/renderer/form_autofill_util.h" |
15 #include "components/autofill/content/renderer/page_click_tracker.h" | 15 #include "components/autofill/content/renderer/page_click_tracker.h" |
16 #include "components/autofill/content/renderer/password_autofill_agent.h" | 16 #include "components/autofill/content/renderer/password_autofill_agent.h" |
17 #include "components/autofill/core/common/autocheckout_status.h" | 17 #include "components/autofill/core/common/autocheckout_status.h" |
18 #include "components/autofill/core/common/autofill_constants.h" | 18 #include "components/autofill/core/common/autofill_constants.h" |
19 #include "components/autofill/core/common/autofill_messages.h" | 19 #include "components/autofill/core/common/autofill_messages.h" |
20 #include "components/autofill/core/common/autofill_switches.h" | 20 #include "components/autofill/core/common/autofill_switches.h" |
21 #include "components/autofill/core/common/form_data.h" | 21 #include "components/autofill/core/common/form_data.h" |
22 #include "components/autofill/core/common/form_data_predictions.h" | 22 #include "components/autofill/core/common/form_data_predictions.h" |
23 #include "components/autofill/core/common/form_field_data.h" | 23 #include "components/autofill/core/common/form_field_data.h" |
24 #include "components/autofill/core/common/web_element_descriptor.h" | 24 #include "components/autofill/core/common/web_element_descriptor.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_strings.h" | 28 #include "grit/component_strings.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | |
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | |
31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | |
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | |
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | |
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | |
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | |
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeCollection.h" | |
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebOptionElement.h" | |
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | |
39 #include "third_party/WebKit/public/platform/WebRect.h" | 29 #include "third_party/WebKit/public/platform/WebRect.h" |
40 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 30 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 31 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 32 #include "third_party/WebKit/public/web/WebDocument.h" |
| 33 #include "third_party/WebKit/public/web/WebFormControlElement.h" |
| 34 #include "third_party/WebKit/public/web/WebFormElement.h" |
| 35 #include "third_party/WebKit/public/web/WebFrame.h" |
| 36 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 37 #include "third_party/WebKit/public/web/WebNode.h" |
| 38 #include "third_party/WebKit/public/web/WebNodeCollection.h" |
| 39 #include "third_party/WebKit/public/web/WebOptionElement.h" |
| 40 #include "third_party/WebKit/public/web/WebView.h" |
41 #include "ui/base/keycodes/keyboard_codes.h" | 41 #include "ui/base/keycodes/keyboard_codes.h" |
42 #include "ui/base/l10n/l10n_util.h" | 42 #include "ui/base/l10n/l10n_util.h" |
43 | 43 |
44 using WebKit::WebAutofillClient; | 44 using WebKit::WebAutofillClient; |
45 using WebKit::WebFormControlElement; | 45 using WebKit::WebFormControlElement; |
46 using WebKit::WebFormElement; | 46 using WebKit::WebFormElement; |
47 using WebKit::WebFrame; | 47 using WebKit::WebFrame; |
48 using WebKit::WebInputElement; | 48 using WebKit::WebInputElement; |
49 using WebKit::WebKeyboardEvent; | 49 using WebKit::WebKeyboardEvent; |
50 using WebKit::WebNode; | 50 using WebKit::WebNode; |
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 if (!forms.empty()) { | 997 if (!forms.empty()) { |
998 if (click_timer_.IsRunning()) | 998 if (click_timer_.IsRunning()) |
999 click_timer_.Stop(); | 999 click_timer_.Stop(); |
1000 Send(new AutofillHostMsg_FormsSeen(routing_id(), forms, | 1000 Send(new AutofillHostMsg_FormsSeen(routing_id(), forms, |
1001 forms_seen_timestamp_, | 1001 forms_seen_timestamp_, |
1002 state)); | 1002 state)); |
1003 } | 1003 } |
1004 } | 1004 } |
1005 | 1005 |
1006 } // namespace autofill | 1006 } // namespace autofill |
OLD | NEW |